Skip to content

Commit

Permalink
Merge pull request #36 from l0rb/fix-signup
Browse files Browse the repository at this point in the history
fix backend problem on signup
  • Loading branch information
interrogator committed Dec 10, 2019
2 parents 1942d29 + cea2e61 commit fb300a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def signup(request):
form = UserCreationForm(request.POST)
if form.is_valid():
user = form.save()
user.backend = 'django.contrib.auth.backends.ModelBackend'
login(request, user)
return redirect('/')
else:
Expand Down

0 comments on commit fb300a9

Please sign in to comment.