Skip to content

Commit

Permalink
Merge pull request #161 from tomabrafix/fix-missing-reverse-for-home
Browse files Browse the repository at this point in the history
registration: Fix missing reverse for 'home'
  • Loading branch information
timonegk authored Jan 25, 2024
2 parents c957097 + 49be240 commit fbfb75e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitpoll/registration/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def request_successful(request, email):

def create_account(request, info_token):
if request.user.is_authenticated:
return redirect('home')
return redirect('index')
try:
info = signing.loads(info_token, max_age=TOKEN_MAX_AGE)
except signing.SignatureExpired:
Expand Down Expand Up @@ -82,7 +82,7 @@ def create_account(request, info_token):
user.backend = 'django.contrib.auth.backends.ModelBackend'

login(request, user)
return redirect('home')
return redirect('index')
else:
form = SetPasswordForm(None)

Expand Down

0 comments on commit fbfb75e

Please sign in to comment.