Jun 29 - Update app name, and documents
This commit is contained in:
@@ -106,12 +106,12 @@ def send_reset(user_id):
|
||||
reset_url = url_for("auth.reset_password", token=token, _external=True)
|
||||
body = (
|
||||
f"Hi {user.get('full_name') or user['username']},\n\n"
|
||||
f"An administrator has sent you a password reset link for your Website Checker account.\n"
|
||||
f"An administrator has sent you a password reset link for your Bid Checker account.\n"
|
||||
f"Click the link below to set a new password (valid for 1 hour):\n\n"
|
||||
f"{reset_url}\n\n"
|
||||
f"If you did not expect this, please contact your administrator.\n"
|
||||
)
|
||||
send_email(user["email"], "Website Checker — Password Reset", body)
|
||||
send_email(user["email"], "Bid Checker — Password Reset", body)
|
||||
log_action(admin["id"], "SEND_RESET_LINK", "users", user_id,
|
||||
f"Password reset link sent to '{user['username']}' ({user['email']}).")
|
||||
logger.info(f"Reset email sent to user_id={user_id} by admin_id={admin['id']}.")
|
||||
|
||||
Reference in New Issue
Block a user