mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 18:47:23 +00:00
Fix reject reset password without configured email server
This commit is contained in:
parent
d6f41d8dc0
commit
bb317d54f2
@ -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.get_mail_server_configured():
|
||||
abort(404)
|
||||
if current_user is not None and current_user.is_authenticated:
|
||||
ret, message = reset_password(user_id)
|
||||
if ret == 1:
|
||||
|
Loading…
Reference in New Issue
Block a user