Give Login Form previous URL to return to. SESSION var is empty if invalid page. empty args is catched by function
This commit is contained in:
parent
b73dea95a4
commit
2db2b79bfa
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Login extends BaseModule
|
|||
goaway(self::getApp()->get_baseurl());
|
||||
}
|
||||
|
||||
return self::form(self::getApp()->get_baseurl(), intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
|
||||
return self::form($_SESSION['return_url'], intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
|
||||
}
|
||||
|
||||
public static function post()
|
||||
|
|
Loading…
Reference in a new issue