Actually save user password on account registration
This commit is contained in:
parent
888d33cc42
commit
f960f6919d
|
@ -227,7 +227,7 @@ def register(request):
|
|||
if request.method == 'POST':
|
||||
form = CustomUserCreationForm(data=request.POST)
|
||||
if form.is_valid():
|
||||
form.instance.save()
|
||||
form.save()
|
||||
auth_login(request, form.instance)
|
||||
messages.info(request, "Registration as user %s successfull!" % form.instance.username)
|
||||
|
||||
|
|
Loading…
Reference in New Issue