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
from django.views.decorators.debug import sensitive_post_parameters
from django.views.generic.base import TemplateView
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.utils import timezone
......@@ -160,8 +160,7 @@ class UserResetPasswordView(TemplateView):
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'
form_list = [forms.UserProfileForm, forms.UserPublicKeyForm]
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