daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Jan 25th, 2016 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if request.method=="POST":
  2.  
  3.         email=request.POST.get('email','')
  4.         password = request.POST.get('password','')
  5.         user = auth.authenticate(email=email,password=password)
  6.         print(email)
  7.         print(password)
  8.         print(user)
  9.         if user is not None:
  10.             print("notNone")
  11.             auth.login(request,user)
  12.             return HttpResponseRedirect("out")
  13.         else:
  14.             print("None")
  15.             context={
  16.                 "failure":"Password and e-mail did not match",
  17.             }
  18.             return HttpResponseRedirect("out")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top