Skip to content

Commit e6787ff

Browse files
Merge pull request #103 from GFWagnitz/GFWagnitz-patch-1
fix(auth): allows matching of mixed-case usernames
2 parents ccafea2 + 82b7d1a commit e6787ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitlab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default class VerdaccioGitLab implements VerdaccioGitLabPlugin {
9797

9898
GitlabAPI.Users.current()
9999
.then(response => {
100-
if (user !== response.username) {
100+
if (user.toLowerCase() !== response.username.toLowerCase()) {
101101
return cb(getUnauthorized('wrong gitlab username'));
102102
}
103103

0 commit comments

Comments
 (0)