Advertisement
Guest User

Untitled

a guest
Jun 20th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def confirm_user(request):
  2. if request.method == 'POST':
  3. password = request.POST.get('check_pass', '')
  4. user = auth.authenticate(password=password)
  5. if user is not None:
  6. print("Есть совпадение")
  7. else:
  8. print("Нет совпадений")
  9. return render(request, 'check.html')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement