From 595f01e7a3b408764a4f27387509dce2b3b9813f Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 19 Feb 2023 19:36:52 +0100 Subject: [PATCH] Bugfix change erader email in /me page --- cps/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/web.py b/cps/web.py index 8445196f..f02ac21e 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1368,8 +1368,8 @@ def change_profile(kobo_support, local_oauth_check, oauth_status, translations, if to_save.get("password"): current_user.password = generate_password_hash(to_save.get("password")) try: - if to_save.get("eReader_mail", current_user.kindle_mail) != current_user.kindle_mail: - current_user.kindle_mail = valid_email(to_save.get("eReader_mail")) + if to_save.get("kindle_mail", current_user.kindle_mail) != current_user.kindle_mail: + current_user.kindle_mail = valid_email(to_save.get("kindle_mail")) new_email = valid_email(to_save.get("email", current_user.email)) if not new_email: raise Exception(_("Email can't be empty and has to be a valid Email"))