After logout go to login page

This commit is contained in:
Diego Najar 2018-10-23 20:25:06 +02:00
parent 78735f67f2
commit 2b1e09646b
2 changed files with 5 additions and 1 deletions

View File

@ -21,5 +21,5 @@
// ============================================================================ // ============================================================================
if ($login->logout()) { if ($login->logout()) {
Redirect::home(); Redirect::admin();
} }

View File

@ -22,4 +22,8 @@ class Redirect {
self::url(HTML_PATH_ROOT); self::url(HTML_PATH_ROOT);
} }
public static function admin()
{
self::url(HTML_PATH_ADMIN_ROOT);
}
} }