Guest User

Untitled

a guest
Oct 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. from django.contrib.auth.hashers import make_password
  2. from account.models import myUsers
  3.  
  4. password = make_password(request.POST.get('password'))
  5. email = request.POST.get('email')
  6.  
  7. if myUsers.password == password and myUsers.email == email:
  8. #make login and redirect to panel
  9. else:
  10. #show error message
Add Comment
Please, Sign In to add comment