Auth use request.requires_https, thanks Yarin

This commit is contained in:
mdipierro
2012-10-05 07:18:35 -05:00
parent 7b6e5c5270
commit 6a97bfe517
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ class Request(Storage):
and secure the session.
"""
if not global_settings.cronjob and not self.is_https:
session.forget()
current.session.forget()
redirect(URL(scheme='https', args=self.args, vars=self.vars))
current.session.secure()