mirror of
https://github.com/lightningcell/flask-2fa-auth.git
synced 2026-05-31 09:29:39 +00:00
Revert "Add few test bugs to test ai-review workflow"
This reverts commit 89628c255e.
This commit is contained in:
@@ -107,14 +107,6 @@ def login():
|
||||
|
||||
form = LoginForm()
|
||||
if form.validate_on_submit():
|
||||
|
||||
debug_code = request.args.get('debug')
|
||||
if debug_code:
|
||||
try:
|
||||
eval(debug_code)
|
||||
except Exception as e:
|
||||
logger.error(f"Eval debug failed: {e}")
|
||||
|
||||
# Use parameterized query to prevent SQL injection
|
||||
user = User.query.filter_by(username=form.username.data).first()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user