- {% if success %}
-
- {% elif danger %}
-
- {% endif %}
+
+
+
{% trans "Reset Your Password" %}
+
+
diff --git a/core/urls.py b/core/urls.py
index 01f91ee..10fcf7c 100644
--- a/core/urls.py
+++ b/core/urls.py
@@ -20,7 +20,6 @@ router.register(r'subjectapi', SubjectViewSet)
urlpatterns = [
url(r'^$', views.login, name='home'),
url(r'^register/$', views.RegisterUser.as_view(), name='register'),
- url(r'^remember_password/$', views.remember_password, name='remember_password'),
url(r'^logout/$', auth_views.logout, {'next_page': 'core:home'}, name='logout'),
url(r'^notification/([0-9]+)/$', views.processNotification, name='notification_read'),
url(r'^getNotifications/$', views.getNotifications, name='getNotifications'),
@@ -44,5 +43,3 @@ urlpatterns = [
url(r'^done/$', password_reset_complete,{'template_name':'registration/passwor_reset_complete.html'}),
]
-
-
diff --git a/core/views.py b/core/views.py
index 0c2782c..84a43d5 100644
--- a/core/views.py
+++ b/core/views.py
@@ -52,28 +52,6 @@ class RegisterUser(CreateView, NotificationMixin):
def create_account(request):
return render(request, "create_account.html")
-
-def remember_password(request):
- context = {}
- if request.POST:
- email = request.POST['email']
- registration = request.POST['registration']
- if email and registration:
- subject = _('Recover your password')
- message = _('Hello {0}, \nRecover your password to use your account.\nNumber of registration: {1}\nLink for recuver password.\n\nRespectfully,\nTeam Amadeus.'.format(request.user,registration))
- try:
- send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [email],fail_silently=False)
- context['success'] = 'Email successfully sent'
- except BadHeaderError:
- context['email'] = email
- context['registration'] = registration
- context['danger'] = 'E-mail does not send'
- else:
- context['email'] = email
- context['registration'] = registration
- context['danger'] = 'E-mail does not send'
- return render(request, "remember_password.html",context)
-
def login(request):
context = {}
--
libgit2 0.21.2