removal of the debug
This commit is contained in:
@@ -10370,7 +10370,6 @@ def admin_reset_user_password():
|
||||
|
||||
username = request.form.get('username')
|
||||
new_password = html.escape(request.form.get('new_password', 'Password123')) # Default temporary password
|
||||
app.logger.info(f"Admin {session['username']} is attempting to reset password for user {username} with password: {new_password}")
|
||||
|
||||
if not username:
|
||||
flash('Kein Benutzer ausgewählt', 'error')
|
||||
@@ -10390,7 +10389,6 @@ def admin_reset_user_password():
|
||||
# Reset the password
|
||||
try:
|
||||
us.update_password(username, new_password)
|
||||
app.logger.info(f"Password for user {username} has been reset to: {new_password}")
|
||||
flash(f'Passwort für {username} wurde erfolgreich zurückgesetzt auf: {new_password}', 'success')
|
||||
except Exception as e:
|
||||
app.logger.error(f'Error resetting password for {encrypt_text(username)}: {e}')
|
||||
|
||||
Reference in New Issue
Block a user