Commit 47040a61 authored by ibuler's avatar ibuler

[Bugfix] User first login

parent da113b99
...@@ -17,7 +17,7 @@ from django.views.decorators.csrf import csrf_protect ...@@ -17,7 +17,7 @@ from django.views.decorators.csrf import csrf_protect
from django.views.decorators.debug import sensitive_post_parameters from django.views.decorators.debug import sensitive_post_parameters
from django.views.generic.base import TemplateView from django.views.generic.base import TemplateView
from django.views.generic.edit import FormView from django.views.generic.edit import FormView
# from formtools.wizard.views import SessionWizardView from formtools.wizard.views import SessionWizardView
from django.conf import settings from django.conf import settings
from django.utils import timezone from django.utils import timezone
...@@ -160,8 +160,7 @@ class UserResetPasswordView(TemplateView): ...@@ -160,8 +160,7 @@ class UserResetPasswordView(TemplateView):
return HttpResponseRedirect(reverse('users:reset-password-success')) return HttpResponseRedirect(reverse('users:reset-password-success'))
class UserFirstLoginView(LoginRequiredMixin, ListView): class UserFirstLoginView(LoginRequiredMixin, SessionWizardView):
# class UserFirstLoginView(LoginRequiredMixin, SessionWizardView):
template_name = 'users/first_login.html' template_name = 'users/first_login.html'
form_list = [forms.UserProfileForm, forms.UserPublicKeyForm] form_list = [forms.UserProfileForm, forms.UserPublicKeyForm]
file_storage = default_storage file_storage = default_storage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment