Skip to content

Commit 57f8097

Browse files
author
Guillim
committed
it's a small fix: when there was an error in the signup form, the redirection to signup was without allow_signup, wich triggered a weird "you can't singup" message.
1 parent a6ea2a7 commit 57f8097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/authentification/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def post(self, request, *args, **kwargs):
4646
email.send()
4747
return render(request, 'validate_mail_address_complete.html')
4848
else:
49-
return render(request, self.template_name, {'form': form})
49+
return render(request, self.template_name, {'form': form, 'allow_signup': bool(settings.ALLOW_SIGNUP)})

0 commit comments

Comments
 (0)