mirror of
https://github.com/evilhero/mylar
synced 2025-02-22 22:10:30 +00:00
FIX: Another attempt at the forms auth + from_page problem
This commit is contained in:
parent
a90efefeb4
commit
a300fc26ed
1 changed files with 4 additions and 1 deletions
|
@ -136,7 +136,10 @@ class AuthController(object):
|
|||
if error_msg:
|
||||
return self.get_loginform(current_username, error_msg, from_page)
|
||||
else:
|
||||
from_page = mylar.CONFIG.HTTP_ROOT + from_page
|
||||
if mylar.CONFIG.HTTP_ROOT != "/":
|
||||
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