From 22901306d2e261d7c173aaa62991563daf1de549 Mon Sep 17 00:00:00 2001 From: Pat Freeman Date: Thu, 23 Apr 2020 21:03:01 -0500 Subject: [PATCH] Fix email confirmation page --- pykeg/web/account/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykeg/web/account/views.py b/pykeg/web/account/views.py index 4a5dbb05c..c498031a7 100644 --- a/pykeg/web/account/views.py +++ b/pykeg/web/account/views.py @@ -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