From d6f41d8dc027cd6c4aca8498555dfa81e97dad9a Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Fri, 1 May 2020 08:33:50 +0200 Subject: [PATCH] Fix error 404 on reset password (Fix #1342) --- cps/admin.py | 4 ++-- cps/templates/book_edit.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/admin.py b/cps/admin.py index 2bfca96b..3e703f21 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -933,8 +933,8 @@ def edit_user(user_id): @login_required @admin_required def reset_user_password(user_id): - if not config.config_public_reg: - abort(404) + #if not config.config_public_reg: + # abort(404) if current_user is not None and current_user.is_authenticated: ret, message = reset_password(user_id) if ret == 1: diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html index f931a60a..b72ef197 100644 --- a/cps/templates/book_edit.html +++ b/cps/templates/book_edit.html @@ -184,7 +184,7 @@ {{_('Fetch Metadata')}} - {{_('Cancel')}} + {{_('Cancel')}}