How do I register a user with a specific email address?
def register(request):
if request.method == "POST":
username = request.POST["username"]
email = request.POST["mail"]
# Ensure password matches confirmation
password = request.POST["password"]
confirmation = request.POST["confirmation"]
if password != confirmation:
return render(request, "auctions/register.html", {
"message": "Passwords must match."
})