Greet'em all

Report a typo

In this task, try to create the login page for your users. First, define the request method for the if condition. Then, fill in the gaps at the last line to pass the username variable as an argument.

Write a program in Python 3
def login():
if request.method == "...":
username = request.form["username"]
password = request.form["passwd"]
return render_template("base.html",...)
___

Create a free account to access the full topic