From 260a694834a71cd4a17144cd4fd971afeeb4743d Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 28 Jan 2023 18:59:14 +0100 Subject: [PATCH] Bugfixes after merge --- cps/web.py | 6 +++--- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cps/web.py b/cps/web.py index e3eb04bb..0d79c8f5 100644 --- a/cps/web.py +++ b/cps/web.py @@ -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)) diff --git a/requirements.txt b/requirements.txt index 4d39aef8..cbe66840 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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