Browse Source

Zprovozněn reset hesla

export_seznamu_prednasek
Pavel 'LEdoian' Turinsky 5 years ago
parent
commit
a420a6bc98
  1. 2
      mamweb/settings_local.py
  2. 2
      seminar/urls.py
  3. 1
      seminar/views.py

2
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'

2
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/<uidb64>/<token>/', 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'),

1
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):

Loading…
Cancel
Save