Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if request.method=="POST":
- email=request.POST.get('email','')
- password = request.POST.get('password','')
- user = auth.authenticate(email=email,password=password)
- print(email)
- print(password)
- print(user)
- if user is not None:
- print("notNone")
- auth.login(request,user)
- return HttpResponseRedirect("out")
- else:
- print("None")
- context={
- "failure":"Password and e-mail did not match",
- }
- return HttpResponseRedirect("out")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement