Give Login Form previous URL to return to. SESSION var is empty if invalid page. empty args is catched by function

pull/5865/head
Jonny Tischbein 2018-10-09 21:38:17 +02:00
rodzic b73dea95a4
commit 2db2b79bfa
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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