Loading portal/service/auth.py +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ class AuthService: throws(bool): Throws an exception if the token is not valid Returns(Bool): """ user = GitlabService(token=token, token_type='oauth').current_user() user = GitlabService(token=token, token_type='oauth').current_user if not user or user.username != username: if throws: log_auth_w(f"Login: gitlab authorization failed for - {username}") Loading Loading
portal/service/auth.py +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ class AuthService: throws(bool): Throws an exception if the token is not valid Returns(Bool): """ user = GitlabService(token=token, token_type='oauth').current_user() user = GitlabService(token=token, token_type='oauth').current_user if not user or user.username != username: if throws: log_auth_w(f"Login: gitlab authorization failed for - {username}") Loading