Skip to content

Error in password reset form when it's searching for is_mfa_enabled, 500 error when clicking on the link when already logged in #523

@duckduckgrayduck

Description

@duckduckgrayduck

AttributeError
Level: Error
'NoneType' object has no attribute 'is_anonymous'

Sentry error:
https://muckrock.sentry.io/issues/6652064154/events/2e30080852a2477fb014531a90aab0dd/?project=1422309&query=is%3Aunresolved&sort=freq

Place where the issue arises in the code:

mfa_enabled = is_mfa_enabled(user)

I was able to replicate this in the following way:

Request a password reset link, but do not click on it.

Login normally, so a logged in session is created.

Next, click on the password reset link in my email. It shows me a 500 error page and a new entry appears in Sentry for this error. This is a fairly common error in our Sentry logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authAccounts and authorizationbugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions