changed admin password to bcrypt

This commit is contained in:
2026-02-20 02:49:32 +01:00
parent 59b924f26a
commit 7ed956a1a8
4 changed files with 93 additions and 2 deletions

View File

@@ -257,6 +257,8 @@ def admin_login():
if user and check_password(user, password):
flask_login.login_user(user)
current_app.logger.info(f"Admin login successful: {user_name}")
if not get_token():
set_cookie(user_name)
else:
current_app.logger.warning(f"Failed admin login attempt: {user_name}")
flash("Incorrect username or password. Please try again.", "error")