from django.conf.urls import url

from authentication import views

urlpatterns = [
    url(r'^login/$', views.login_user, name='login'),
    url(r'^logout/$', views.logout_user, name='logout'),
    url(r'^change-password/$', views.change_password, name='change_password'),
    url(r'^change-password-done/$', views.change_password_done, name='change_password_done'),
    url(r'^signup/$', views.signup, name='signup'),
    url(r'^signup-done/$', views.signup_done, name='signup_done'),
    url(r'^forgot-password/$', views.forgot_password, name='forgot_password'),
    url(r'^forgot-password-done/$', views.forgot_password_done, name='forgot_password_done'),
    url(r'^activate/(?P<hash_key>[0-9a-zA-Z]+)/$', views.activate_account, name='activate_account'),
    url(r'^set-password-done/', views.set_password_done, name='set_password_done'),

]

from django.conf.urls import url
from django.contrib.auth import views as auth_views

from authentication.views import SignUpView, SignUpDoneView, SignUpConfirmView
from website.settings import DEFAULT_FROM_MAIL

urlpatterns = [
    url(r'^login/$', auth_views.LoginView.as_view(template_name="login.html"), name='login'),
    url(r'^logout/$', auth_views.LogoutView.as_view(template_name="redirection_page.html"), name='logout'),
    url(r'^change-password/$', auth_views.PasswordChangeView.as_view(template_name="change_password.html"), name='password_change'),
    url(r'^change-password-done/$', auth_views.PasswordChangeDoneView.as_view(template_name="redirection_page.html"), name='password_change_done'),
    url(r'^signup/$', SignUpView, name='signup'),
    url(r'^signup-done/$', SignUpDoneView, name='signup_done'),
    url(r'^signup-confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', SignUpConfirmView, name='signup_confirm'),
    url(r'^forgot-password/$', auth_views.PasswordResetView.as_view(
        template_name="forgot_password.html",
        email_template_name="password_reset_email.html",
        from_email='%s'.format(DEFAULT_FROM_MAIL)), name='password_reset'),
    url(r'^reset-password/done/$', auth_views.PasswordResetDoneView.as_view(template_name="redirection_page.html"), name='password_reset_done'),
    url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.PasswordResetConfirmView.as_view(template_name="set_password.html"), name='password_reset_confirm'),
    url(r'^reset-complete-done/$', auth_views.PasswordResetCompleteView.as_view(template_name="redirection_page.html"), name='password_reset_complete'),
]

Change from own to django auth forms