Loading portal/service/auth.py +1 −2 Original line number Diff line number Diff line Loading @@ -126,8 +126,7 @@ class AuthService: throws(bool): Throws an exception if the token is not valid Returns(Bool): """ client = self._gitlab.current_user(token=token) user = client.user user = self._gitlab.current_user(token=token) 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 −2 Original line number Diff line number Diff line Loading @@ -126,8 +126,7 @@ class AuthService: throws(bool): Throws an exception if the token is not valid Returns(Bool): """ client = self._gitlab.current_user(token=token) user = client.user user = self._gitlab.current_user(token=token) if not user or user.username != username: if throws: log_auth_w(f"Login: gitlab authorization failed for - {username}") Loading