Update UnSafeComparisonOfSensitiveInfo.py

This commit is contained in:
Ahmed Farid
2022-08-15 15:19:13 +01:00
committed by GitHub
parent dbd6076725
commit 169d27951a

View File

@@ -8,7 +8,7 @@ from flask import Flask
from flask import request
@app.route('/bad', methods = ['POST', 'GET'])
def bad(password):
def bad():
if request.method == 'POST':
password = request.form['pwd']
return password == "test"