mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 18:47:23 +00:00
Fix error 500 on reset password in debug mode
This commit is contained in:
parent
ac37483d47
commit
1bc7134ec2
@ -939,7 +939,7 @@ def reset_user_password(user_id):
|
|||||||
if current_user is not None and current_user.is_authenticated:
|
if current_user is not None and current_user.is_authenticated:
|
||||||
ret, message = reset_password(user_id)
|
ret, message = reset_password(user_id)
|
||||||
if ret == 1:
|
if ret == 1:
|
||||||
log.debug(u"Password for user %(user)s reset", user=message)
|
log.debug(u"Password for user %s reset", message)
|
||||||
flash(_(u"Password for user %(user)s reset", user=message), category="success")
|
flash(_(u"Password for user %(user)s reset", user=message), category="success")
|
||||||
elif ret == 0:
|
elif ret == 0:
|
||||||
log.error(u"An unknown error occurred. Please try again later.")
|
log.error(u"An unknown error occurred. Please try again later.")
|
||||||
|
Loading…
Reference in New Issue
Block a user