Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.contrib.auth.hashers import make_password
- from account.models import myUsers
- password = make_password(request.POST.get('password'))
- email = request.POST.get('email')
- if myUsers.password == password and myUsers.email == email:
- #make login and redirect to panel
- else:
- #show error message
Add Comment
Please, Sign In to add comment