diff --git a/inau.py b/inau.py index 55d7529c326116237f937b38c876bd28169011be..0689d53d6b92461233706e64461fcddfbffddb55 100644 --- a/inau.py +++ b/inau.py @@ -135,9 +135,9 @@ def authenticate(authtype, request): username, password = base64.b64decode(split[1]).decode().split(':', 1) user = Users.query.filter(Users.name == username).first() if user is None: - raise Forbidden() + raise Forbidden() if authtype == AuthenticationType.ADMIN and user.admin is False: - raise Forbidden() + raise Forbidden() try: auth.simple_bind_s(username, password) auth.unbind_s()