Actually save user password on account registration

This commit is contained in:
Sebastian Lohff 2017-02-03 01:04:06 +01:00
parent 888d33cc42
commit f960f6919d
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ def register(request):
if request.method == 'POST': if request.method == 'POST':
form = CustomUserCreationForm(data=request.POST) form = CustomUserCreationForm(data=request.POST)
if form.is_valid(): if form.is_valid():
form.instance.save() form.save()
auth_login(request, form.instance) auth_login(request, form.instance)
messages.info(request, "Registration as user %s successfull!" % form.instance.username) messages.info(request, "Registration as user %s successfull!" % form.instance.username)