Skip to content

Commit

Permalink
fix(auth): compare to lower-cased version of user
Browse files Browse the repository at this point in the history
  • Loading branch information
GFWagnitz committed Dec 2, 2019
1 parent d75f300 commit 82b7d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitlab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default class VerdaccioGitLab implements VerdaccioGitLabPlugin {

GitlabAPI.Users.current()
.then(response => {
if (user !== response.username.toLowerCase()) {
if (user.toLowerCase() !== response.username.toLowerCase()) {
return cb(getUnauthorized('wrong gitlab username'));
}

Expand Down

0 comments on commit 82b7d1a

Please sign in to comment.