summaryrefslogtreecommitdiffstats
path: root/virtualenv/pffedportal
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2013-10-28 13:24:08 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2013-10-28 13:24:08 (GMT)
commitb4a90b611f8f0bec31348d0ccfb495a0253cdabc (patch)
tree1092822f52ee5fbd7f793043a5f415de80f00fde /virtualenv/pffedportal
parent54368b7aed6066bf05b27a222610d9b1f5e6fe00 (diff)
downloadunivnautes-old-b4a90b611f8f0bec31348d0ccfb495a0253cdabc.zip
univnautes-old-b4a90b611f8f0bec31348d0ccfb495a0253cdabc.tar.gz
univnautes-old-b4a90b611f8f0bec31348d0ccfb495a0253cdabc.tar.bz2
login page session expire after one minute
Diffstat (limited to 'virtualenv/pffedportal')
-rw-r--r--virtualenv/pffedportal/base/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/virtualenv/pffedportal/base/views.py b/virtualenv/pffedportal/base/views.py
index 1aabebe..41cea64 100644
--- a/virtualenv/pffedportal/base/views.py
+++ b/virtualenv/pffedportal/base/views.py
@@ -18,7 +18,6 @@ import pfsense
from forms import MailForm, EMAIL_SUBJECTS_CHOICES, IDP_CHOICES
from django.core.mail import send_mail
-#from smtplib import SMTPException
def redirect302(request):
@@ -103,6 +102,7 @@ def login(request):
mailform = True
else:
mailform = False
+ request.session.set_expiry(60)
return render_to_response('login.html',
{'default_idp': default_idp,
'mailform': mailform,