I know this is probably just a question of not understanding the documentation, but when registering a user, my password confirmation redirects to the apology, "both passwords must match". Following are the lines of code I'm using for the password and the confirmation:
# ensure password was submitted elif not request.form.get("password"): return apology("must provide password") # ensure password is confirmed elif not request.form.get("password2") == "password": return apology("both passwords need to match to confirm")
The apology I get is "both passwords need to match to confirm". And, yes, I am entering the same password.