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:
parent
508e2b4d0a
commit
260a694834
@ -1393,9 +1393,9 @@ def change_profile(kobo_support, local_oauth_check, oauth_status, translations,
|
|||||||
to_save = request.form.to_dict()
|
to_save = request.form.to_dict()
|
||||||
current_user.random_books = 0
|
current_user.random_books = 0
|
||||||
try:
|
try:
|
||||||
if current_user.role_passwd() or current_user.role_admin():
|
if current_user.role_passwd() or current_user.role_admin():
|
||||||
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"))
|
||||||
if to_save.get("eReader_mail", current_user.kindle_mail) != current_user.kindle_mail:
|
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"))
|
current_user.kindle_mail = valid_email(to_save.get("eReader_mail"))
|
||||||
new_email = valid_email(to_save.get("email", current_user.email))
|
new_email = valid_email(to_save.get("email", current_user.email))
|
||||||
|
@ -18,4 +18,4 @@ lxml>=3.8.0,<5.0.0
|
|||||||
flask-wtf>=0.14.2,<1.2.0
|
flask-wtf>=0.14.2,<1.2.0
|
||||||
chardet>=3.0.0,<4.1.0
|
chardet>=3.0.0,<4.1.0
|
||||||
advocate>=1.0.0,<1.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
|
||||||
|
Loading…
Reference in New Issue
Block a user