mirror of
https://github.com/evilhero/mylar
synced 2025-02-22 22:10:30 +00:00
FIX: another attempt at the forms page + from_page problem
This commit is contained in:
parent
a300fc26ed
commit
74dca7d696
1 changed files with 1 additions and 3 deletions
|
@ -136,10 +136,8 @@ class AuthController(object):
|
|||
if error_msg:
|
||||
return self.get_loginform(current_username, error_msg, from_page)
|
||||
else:
|
||||
if mylar.CONFIG.HTTP_ROOT != "/":
|
||||
if from_page != "/":
|
||||
from_page = from_page
|
||||
else:
|
||||
from_page = mylar.CONFIG.HTTP_ROOT + from_page
|
||||
cherrypy.session.regenerate()
|
||||
cherrypy.session[SESSION_KEY] = cherrypy.request.login = current_username
|
||||
#expiry = datetime.now() + (timedelta(days=30) if remember_me == '1' else timedelta(minutes=60))
|
||||
|
|
Loading…
Reference in a new issue