From a420a6bc98dc80307392998f7bc05e278c1b4b32 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Wed, 15 Jan 2020 23:55:13 +0100 Subject: [PATCH] =?UTF-8?q?Zprovozn=C4=9Bn=20reset=20hesla?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/settings_local.py | 2 ++ seminar/urls.py | 2 +- seminar/views.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mamweb/settings_local.py b/mamweb/settings_local.py index 517772ee..5a2aa969 100644 --- a/mamweb/settings_local.py +++ b/mamweb/settings_local.py @@ -87,3 +87,5 @@ LOGGING = { # set to 'DEBUG' for EXTRA verbose output # LOGGING['handlers']['console']['level'] = 'INFO' + +EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' diff --git a/seminar/urls.py b/seminar/urls.py index d76e2e31..7ae2558c 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -109,7 +109,7 @@ urlpatterns = [ path('auth/reset_password/', views.PasswordResetView.as_view(), name='reset_password'), path('auth/change_password/', views.PasswordChangeView.as_view(), name='change_password'), path('auth/reset_password_done/', views.PasswordResetDoneView.as_view(), name='reset_password_done'), - path('auth/reset_password_confirm/', views.PasswordResetConfirmView.as_view(), name='reset_password_confirm'), + path('auth/reset_password_confirm///', views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'), path('auth/reset_password_complete/', views.PasswordResetCompleteView.as_view(), name='reset_password_complete'), path('auth/resitel_edit', views.resitelEditView, name='seminar_resitel_edit'), path('', views.TitulniStranaView.as_view(), name='titulni_strana'), diff --git a/seminar/views.py b/seminar/views.py index 4a18739f..6f31a889 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -1302,7 +1302,6 @@ class PasswordResetView(auth_views.PasswordResetView): # TODO: vlastní email_template_name a subject_template_name a html_email_template_name success_url = reverse_lazy('reset_password_done') from_email = 'login@mam.mff.cuni.cz' - # TODO: přepsat User-a :-( # "Poslali jsme e-mail (pokud bylo kam))" class PasswordResetDoneView(auth_views.PasswordResetDoneView):