diff options
Diffstat (limited to 'talerbank')
-rw-r--r-- | talerbank/app/views.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py index 9199cf7..e70fe88 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -791,16 +791,6 @@ def auth_and_login(request): """Return user instance after checking authentication credentials, False if errors occur""" - auth_type = None - if request.method in ["POST", "PUT"]: - data = json.loads(request.body.decode("utf-8")) - auth_type = data["auth"]["type"] - if request.method == "GET": - auth_type = request.GET.get("auth") - if auth_type != "basic": - LOGGER.error("auth method not supported") - raise LoginFailed("auth method not supported") - username = request.META.get("HTTP_X_TALER_BANK_USERNAME") password = request.META.get("HTTP_X_TALER_BANK_PASSWORD") if not username or not password: |