Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def user_registration(request):
- username = request.DATA.get('username')
- email = request.DATA.get('email')
- password = request.DATA.get('password')
- # walidacja
- if not <hasło wystarczająco długie>:
- return <coś w stylu:> HttpResponse('Za krótkie hasło')
- # itd
- # tu jakies haszowanie hasla
- # wysyłanie danych na serwer
- # odpowiedź do klienta, że wszystko poszło ok, albo że jednak niezbyt
- return HttpResponse('Udało się zarejestrować blablabla')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement