Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an assert when resending confirmation email #1160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gounux
Copy link
Member

@gounux gounux commented Mar 13, 2025

This PR makes sure there is a account_verified_email key in the resend confirmation email view.

@duke-nyuki
Copy link
Collaborator

Comment on lines +38 to 39
assert "account_verified_email" in request.session
email_address = request.session.get("account_verified_email")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert "account_verified_email" in request.session
email_address = request.session.get("account_verified_email")
assert "account_verified_email" in request.session
email_address = request.session["account_verified_email"]

If you assert it, no need to break the yping then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants