mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-01 10:50:37 +02:00
Users Plugin: Logout action redirects to current page.
This commit is contained in:
@@ -204,7 +204,8 @@
|
||||
* Logout
|
||||
*/
|
||||
public static function logout() {
|
||||
Session::destroy(); Request::redirect(Site::url().'users/login');
|
||||
Session::destroy();
|
||||
Request::redirect($_SERVER["HTTP_REFERER"]);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user