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:
parent
a90efefeb4
commit
a300fc26ed
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue