Skip to content

Commit

Permalink
fix: request.user didn’t exist
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyWW authored May 5, 2024
1 parent 730f3f1 commit b85a392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/views/core/auth/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def login_manual(request: HtmxAnyHttpRequest): # HTMX POST
messages.error(request, "Incorrect email or password")
return render_toast_message(request)

if request.user.awaiting_email_verification and ARE_EMAILS_ENABLED: # type: ignore[union-attr]
if user.awaiting_email_verification and ARE_EMAILS_ENABLED: # type: ignore[union-attr]
messages.error(request, "You must verify your email before logging in.")
return render_toast_message(request)

Expand Down

0 comments on commit b85a392

Please sign in to comment.