Skip to content

Commit 82b7d1a

Browse files
committed
fix(auth): compare to lower-cased version of user
1 parent d75f300 commit 82b7d1a

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.toLowerCase()) {
100+
if (user.toLowerCase() !== response.username.toLowerCase()) {
101101
return cb(getUnauthorized('wrong gitlab username'));
102102
}
103103

0 commit comments

Comments
 (0)