add prefixes to auth forms

This commit is contained in:
Luke Hatcher 2012-08-14 04:48:39 -04:00
parent 16ba3c6c0c
commit 35d8945a68

View file

@ -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