Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route("/checkUser",methods=["POST"])
- def check():
- username = str(request.form["username"])
- password = str(request.form["password"])
- cursor = conn.cursor()
- cursor.execute("SELECT uname FROM user_details WHERE email='" + username + "' AND password = '"+password+"')")
- user = cursor.fetchone()
- while user is not None:
- return render_template("chat.html")
- else:
- return "failed"
Add Comment
Please, Sign In to add comment