mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 04:11:59 +01:00
sso routing fix
This commit is contained in:
parent
1961634a15
commit
56d605549f
@ -87,6 +87,15 @@ else {
|
|||||||
if(ENABLE_GOOGLE_LOGIN == 1 && isset($request->get['route']) && $request->get['route'] == 'login/google') {
|
if(ENABLE_GOOGLE_LOGIN == 1 && isset($request->get['route']) && $request->get['route'] == 'login/google') {
|
||||||
$action = new Router('login/google');
|
$action = new Router('login/google');
|
||||||
}
|
}
|
||||||
|
else if(ENABLE_SSO_LOGIN == 1) {
|
||||||
|
if(isset($request->get['route']) && $request->get['route'] == 'login/login') {
|
||||||
|
$action = new Router('login/login');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
header("Location: " . SITE_URL . 'sso.php');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$action = new Router('login/login');
|
$action = new Router('login/login');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user