Skip to content

Urls

hypha.apply.users.urls

app_name module-attribute

app_name = 'users'

public_urlpatterns module-attribute

public_urlpatterns = [path('auth/', as_view(), name='passwordless_login_signup'), path('login/', as_view(), name='login'), path('logout/', as_view(next_page='/'), name='logout')]

account_urls module-attribute

account_urls = [path('', ratelimit(key='ip', rate=DEFAULT_RATE_LIMIT, method='GET')(as_view()), name='account'), path('change-email/', account_email_change, name='email_change_confirm_password'), path('password/', include([path('change/', ratelimit(key='user', rate=DEFAULT_RATE_LIMIT, method='POST')(as_view(template_name='users/change_password.html', success_url=reverse_lazy('users:account'))), name='password_change'), path('reset/', as_view(), name='password_reset'), path('reset/done/', as_view(template_name='users/password_reset/done.html'), name='password_reset_done'), path('reset/confirm/<uidb64>/<token>/', as_view(), name='password_reset_confirm'), path('reset/complete/', as_view(template_name='users/password_reset/complete.html'), name='password_reset_complete')])), path('confirmation/done/', as_view(), name='confirm_link_sent'), path('confirmation/<uidb64>/<token>/', as_view(), name='confirm_email'), path('activate/<uidb64>/<token>/', as_view(), name='activate'), path('activate/', create_password, name='activate_password'), path('oauth', oauth, name='oauth'), path('two_factor/setup/', as_view(), name='setup'), path('two_factor/backup_tokens/', as_view(), name='backup_tokens'), path('two_factor/disable/', as_view(), name='disable'), path('two_factor/admin/disable/<str:user_id>/', as_view(), name='admin_disable'), path('auth/<uidb64>/<token>/signup/', as_view(), name='do_passwordless_signup'), path('auth/<uidb64>/<token>/', as_view(), name='do_passwordless_login'), path('auth/set-user-password/', set_password_view, name='set_user_password'), path('sessions/trusted-device/', elevate, {'template_name': 'elevate/elevate.html'}, name='elevate'), path('sessions/send-confirm-access-email/', send_confirm_access_email_view, name='elevate_send_confirm_access_email'), path('sessions/verify-confirmation-code/', elevate_check_code_view, name='elevate_check_code')]

urlpatterns module-attribute

urlpatterns = public_urlpatterns + [path('account/', include(account_urls)), path('account/two_factor/setup/complete/', as_view(url=reverse_lazy('users:backup_tokens'), permanent=False), name='two_factor:setup_complete')]