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.
Basic forms
Greet'em all
Report a typo
Write a program in Python 3
def login():
if request.method == "...":
username = request.form["username"]
password = request.form["passwd"]
return render_template("base.html",...)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.