From d509906dbb1ea877b2e85be63532b1bb01baf20f Mon Sep 17 00:00:00 2001 From: Alessio Igor Bogani <alessio.bogani@elettra.eu> Date: Wed, 1 Jul 2020 17:27:56 +0200 Subject: [PATCH] Fix indentation --- inau.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inau.py b/inau.py index 55d7529..0689d53 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() -- GitLab