diff --git a/__pycache__/models.cpython-313.pyc b/__pycache__/models.cpython-313.pyc index 2666765..f8a220e 100644 Binary files a/__pycache__/models.cpython-313.pyc and b/__pycache__/models.cpython-313.pyc differ diff --git a/app.py b/app.py index fcc686a..577dfa7 100644 --- a/app.py +++ b/app.py @@ -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') diff --git a/database/systades.db b/database/systades.db index 59f8166..4dc1a1d 100644 Binary files a/database/systades.db and b/database/systades.db differ diff --git a/utils/__pycache__/user_manager.cpython-313.pyc b/utils/__pycache__/user_manager.cpython-313.pyc index 6e8c411..d77e2b1 100644 Binary files a/utils/__pycache__/user_manager.cpython-313.pyc and b/utils/__pycache__/user_manager.cpython-313.pyc differ