Latest fixes for python 3 branch

This commit is contained in:
2020-09-28 23:34:25 +02:00
parent be2441096d
commit 3e22a6a890
9 changed files with 56 additions and 70 deletions
+3 -1
View File
@@ -12,10 +12,12 @@ from .security import check_logged
import datetime
import re
@view_config(route_name='auth', match_param="action=login", renderer="jm2l:templates/login.mako")
def login(request):
return {"comefrom":request.GET.get('from', "")}
@view_config(route_name='auth', match_param="action=forgot", renderer="jm2l:templates/login.mako")
def forgot(request):
if request.method == 'POST' and request.POST:
@@ -31,7 +33,7 @@ def forgot(request):
return { 'forgot': True }
else:
# Send the Forgot Mail
mailer = request.registry['mailer']
mailer = request.mailer
# Prepare Plain Text Message :
Mail_template = Template(filename='jm2l/templates/mail_plain.mako')
mail_plain = Mail_template.render(request=request, User=UserFound, action="Forgot")