Smol change
This commit is contained in:
parent
fff4031edb
commit
9795f994c3
6
app.py
6
app.py
@ -41,12 +41,10 @@ def sql():
|
||||
login = request.form['login']
|
||||
password = request.form['pass']
|
||||
cursor = get_db().cursor()
|
||||
cursor.execute(f'SELECT * FROM Users where login == "{login}"')
|
||||
cursor.execute(f'SELECT * FROM Users WHERE login == "{login}" AND password == "{password}"')
|
||||
user = cursor.fetchone()
|
||||
if not user:
|
||||
return render_template('sql-injection.html', error='catmeow')
|
||||
if password != user[2]:
|
||||
return render_template('sql-injection.html', error=':p')
|
||||
return render_template('sql-injection.html', success="popacool")
|
||||
return render_template('sql-injection.html')
|
||||
|
||||
@ -64,4 +62,4 @@ def authdata():
|
||||
|
||||
|
||||
app.run()
|
||||
connection.close()
|
||||
connection.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user