🎉 feat: update app logic and database schema for improved performance

This commit is contained in:
2025-05-02 18:22:02 +02:00
parent e724181915
commit e4e6541b8c
4 changed files with 2 additions and 0 deletions

Binary file not shown.

2
app.py
View File

@@ -288,6 +288,7 @@ def login():
password = request.form.get('password')
user = User.query.filter_by(username=username).first()
if user and user.check_password(password):
login_user(user)
# Aktualisiere letzten Login-Zeitpunkt
@@ -296,6 +297,7 @@ def login():
next_page = request.args.get('next')
return redirect(next_page or url_for('index'))
flash('Ungültiger Benutzername oder Passwort')
return render_template('login.html')

Binary file not shown.