mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 12:30:00 +00:00
Bugfix change erader email in /me page
This commit is contained in:
parent
c79aa75f00
commit
595f01e7a3
@ -1368,8 +1368,8 @@ def change_profile(kobo_support, local_oauth_check, oauth_status, translations,
|
|||||||
if to_save.get("password"):
|
if to_save.get("password"):
|
||||||
current_user.password = generate_password_hash(to_save.get("password"))
|
current_user.password = generate_password_hash(to_save.get("password"))
|
||||||
try:
|
try:
|
||||||
if to_save.get("eReader_mail", current_user.kindle_mail) != current_user.kindle_mail:
|
if to_save.get("kindle_mail", current_user.kindle_mail) != current_user.kindle_mail:
|
||||||
current_user.kindle_mail = valid_email(to_save.get("eReader_mail"))
|
current_user.kindle_mail = valid_email(to_save.get("kindle_mail"))
|
||||||
new_email = valid_email(to_save.get("email", current_user.email))
|
new_email = valid_email(to_save.get("email", current_user.email))
|
||||||
if not new_email:
|
if not new_email:
|
||||||
raise Exception(_("Email can't be empty and has to be a valid Email"))
|
raise Exception(_("Email can't be empty and has to be a valid Email"))
|
||||||
|
Loading…
Reference in New Issue
Block a user