1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

update admin reset user password tip (#5664)

not show password if successfully send email to user
This commit is contained in:
lian
2023-10-17 21:18:22 +08:00
committed by GitHub
parent 71eb383272
commit c858c9272a

View File

@@ -1465,8 +1465,8 @@ class AdminUserResetPassword(APIView):
try:
send_html_email(_(u'Password has been reset on %s') % get_site_name(),
'sysadmin/user_reset_email.html', c, None, [contact_email])
reset_tip = _('Successfully reset password to %(passwd)s, an email has been sent to %(user)s.') % \
{'passwd': new_password, 'user': contact_email}
reset_tip = _('Successfully reset password, an email has been sent to %(user)s.') % \
{'user': contact_email}
except Exception as e:
logger.warning(e)
reset_tip = _('Successfully reset password to %(passwd)s, but failed to send email to %(user)s, please check your email configuration.') % \