From b68f11525fcb9b42f5b42c99289ec5484c5e1b82 Mon Sep 17 00:00:00 2001 From: Guillim Date: Wed, 19 Jun 2019 10:07:24 +0200 Subject: [PATCH] we fix some coding style issues following the PR --- app/authentification/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/authentification/utils.py b/app/authentification/utils.py index 9a6ab5e7..3c9856fe 100644 --- a/app/authentification/utils.py +++ b/app/authentification/utils.py @@ -15,7 +15,7 @@ def activate(request, uidb64, token): if user is not None and account_activation_token.check_token(user, token): user.is_active = True user.save() - login(request, user, backend='django.contrib.auth.backends.ModelBackend') + login(request=request, user=user, backend='django.contrib.auth.backends.ModelBackend') return redirect('projects') else: return render(request, 'validate_mail_address_invalid.html')