2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

small style changes (#8681)

This commit is contained in:
Matthias Mair
2024-12-17 00:31:21 +01:00
committed by GitHub
parent 6fc7c4d2fe
commit d4be203b03
2 changed files with 4 additions and 4 deletions

View File

@ -248,11 +248,11 @@ class Login(LoginView):
if user is None:
return HttpResponse(status=401)
# Check if user has mfa set up
# Check if user has mfa set up
if not user_has_valid_totp_device(user):
return super().post(request, *args, **kwargs)
# Stage login and redirect to 2fa
# Stage login and redirect to 2fa
request.session['allauth_2fa_user_id'] = str(user.id)
request.session['allauth_2fa_login'] = {
'email_verification': app_settings.EMAIL_VERIFICATION,