Verified Commit b87b4818 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Assign a default None value to email in EmailChangeConfirmView

parent e5a384dd
......@@ -278,6 +278,7 @@ class EmailChangeConfirmView(PasswordResetConfirmView):
assert 'uidb64' in kwargs and 'token' in kwargs and 'email' in kwargs
self.validlink = False
self.email = None
self.user = self.get_user(kwargs['uidb64'])
if self.user is not None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment