updated 3

This commit is contained in:
Ske087
2025-04-12 11:44:59 +03:00
parent 4e3c8915d2
commit fe72361057
12 changed files with 119 additions and 17 deletions

2
app.py
View File

@@ -288,6 +288,8 @@ def edit_player(player_id):
player.hostname = request.form['hostname']
if request.form['password']:
player.password = bcrypt.generate_password_hash(request.form['password']).decode('utf-8')
if request.form['quickconnect_password']:
player.quickconnect_password = bcrypt.generate_password_hash(request.form['quickconnect_password']).decode('utf-8')
db.session.commit()
return redirect(url_for('player_page', player_id=player.id))