Skip to content

Commit

Permalink
Fix email confirmation page
Browse files Browse the repository at this point in the history
  • Loading branch information
patfreeman authored and mik3y committed May 1, 2020
1 parent c670bac commit 2290130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykeg/web/account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def notifications(request):
def confirm_email(request, token):
try:
uid, new_address = email.verify_email_change_token(request.user, token)
if uid != request.user.uid:
if uid != request.user.id:
messages.error(request, "E-mail confirmation does not exist for this account.")
elif request.user.email != new_address:
request.user.email = new_address
Expand Down

0 comments on commit 2290130

Please sign in to comment.