1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-19 06:30:29 +00:00

Bugfixes after merge

This commit is contained in:
Ozzie Isaacs 2023-01-28 18:59:14 +01:00
parent 508e2b4d0a
commit 260a694834
2 changed files with 4 additions and 4 deletions

View File

@ -1393,9 +1393,9 @@ def change_profile(kobo_support, local_oauth_check, oauth_status, translations,
to_save = request.form.to_dict()
current_user.random_books = 0
try:
if current_user.role_passwd() or current_user.role_admin():
if to_save.get('password', "") != "":
current_user.password = generate_password_hash(to_save.get("password"))
if current_user.role_passwd() or current_user.role_admin():
if to_save.get('password', "") != "":
current_user.password = generate_password_hash(to_save.get("password"))
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"))
new_email = valid_email(to_save.get("email", current_user.email))

View File

@ -18,4 +18,4 @@ lxml>=3.8.0,<5.0.0
flask-wtf>=0.14.2,<1.2.0
chardet>=3.0.0,<4.1.0
advocate>=1.0.0,<1.1.0
Flask-Limiter>=2.3.0,<2.5.0
Flask-Limiter>=2.3.0,<3.2.0