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:
Jonny Tischbein 2018-10-09 21:38:17 +02:00
parent b73dea95a4
commit 2db2b79bfa

View file

@ -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()