mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-02 19:27:52 +02:00
Users Plugin: Logout action redirects to current page.
This commit is contained in:
@@ -204,7 +204,8 @@
|
|||||||
* Logout
|
* Logout
|
||||||
*/
|
*/
|
||||||
public static function 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