add prefixes to auth forms
This commit is contained in:
parent
16ba3c6c0c
commit
35d8945a68
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,9 @@ import symposion.forms
|
||||||
class SignupView(account.views.SignupView):
|
class SignupView(account.views.SignupView):
|
||||||
|
|
||||||
form_class = symposion.forms.SignupForm
|
form_class = symposion.forms.SignupForm
|
||||||
|
form_kwargs = {
|
||||||
|
"prefix": "signup",
|
||||||
|
}
|
||||||
|
|
||||||
def create_user(self, form, commit=True):
|
def create_user(self, form, commit=True):
|
||||||
user_kwargs = {
|
user_kwargs = {
|
||||||
|
@ -40,6 +43,9 @@ class SignupView(account.views.SignupView):
|
||||||
class LoginView(account.views.LoginView):
|
class LoginView(account.views.LoginView):
|
||||||
|
|
||||||
form_class = account.forms.LoginEmailForm
|
form_class = account.forms.LoginEmailForm
|
||||||
|
form_kwargs = {
|
||||||
|
"prefix": "login",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
|
|
Loading…
Reference in a new issue