1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-23 06:20:31 +00:00

FIX: Another attempt at the forms auth + from_page problem

This commit is contained in:
evilhero 2018-02-18 16:55:00 -05:00
parent a90efefeb4
commit a300fc26ed

View file

@ -135,6 +135,9 @@ class AuthController(object):
error_msg = check_credentials(current_username, current_password)
if error_msg:
return self.get_loginform(current_username, error_msg, from_page)
else:
if mylar.CONFIG.HTTP_ROOT != "/":
from_page = from_page
else:
from_page = mylar.CONFIG.HTTP_ROOT + from_page
cherrypy.session.regenerate()