diff --git a/src/gitlab.ts b/src/gitlab.ts index 58c5b47..27bbe5e 100644 --- a/src/gitlab.ts +++ b/src/gitlab.ts @@ -97,7 +97,7 @@ export default class VerdaccioGitLab implements VerdaccioGitLabPlugin { GitlabAPI.Users.current() .then(response => { - if (user !== response.username) { + if (user !== response.username.toLowerCase()) { return cb(getUnauthorized('wrong gitlab username')); }