Move password set views to the authentication app

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-05-07 03:13:14 -04:00
parent 5e4518211f
commit f69fcbcc82
15 changed files with 214 additions and 190 deletions

View File

@@ -6,7 +6,7 @@ from .views import (
MayanLoginView, MayanLogoutView, MayanPasswordChangeDoneView,
MayanPasswordChangeView, MayanPasswordResetCompleteView,
MayanPasswordResetConfirmView, MayanPasswordResetDoneView,
MayanPasswordResetView
MayanPasswordResetView, UserSetPasswordView
)
@@ -34,11 +34,20 @@ urlpatterns = [
name='password_reset_confirm_view'
),
url(
regex=r'^password/reset/done/$', view=MayanPasswordResetDoneView.as_view(),
regex=r'^password/reset/done/$',
view=MayanPasswordResetDoneView.as_view(),
name='password_reset_done_view'
),
url(
regex=r'^password/reset/$', view=MayanPasswordResetView.as_view(),
name='password_reset_view'
)
),
url(
regex=r'^users/(?P<pk>\d+)/set_password/$',
view=UserSetPasswordView.as_view(), name='user_set_password'
),
url(
regex=r'^users/multiple/set_password/$',
view=UserSetPasswordView.as_view(), name='user_multiple_set_password'
),
]