* adjust for sso.

This commit is contained in:
wangyidong
2022-04-26 09:51:55 +08:00
parent f77b7875cc
commit f4e295ac8e
+11 -1
View File
@@ -2293,7 +2293,17 @@ EOD;
$module = $this->app->getModuleName();
$method = $this->app->getMethodName();
if($module == 'index' || $module == 'tutorial' || $module == 'install' || $module == 'upgrade' || ($module == 'user' && ($method == 'login' || $method == 'deny' || $method == 'logout')) || ($module == 'my' && ($method == 'changepassword' || $method == 'preference')) || ($module == 'file' && $method == 'read') || ($module == 'file' && $method == 'download') || ($module == 'file' && $method == 'uploadimages')) return;
if($module == 'index' ||
$module == 'tutorial' ||
$module == 'install' ||
$module == 'upgrade' ||
($module == 'user' && ($method == 'login' || $method == 'deny' || $method == 'logout')) ||
($module == 'my' && ($method == 'changepassword' || $method == 'preference')) ||
($module == 'file' && ($method == 'read' || $method == 'download' || $method == 'uploadimages')) ||
($module == 'sso' && $method == 'login'))
{
return;
}
$url = helper::safe64Encode($_SERVER['REQUEST_URI']);
$redirectUrl = helper::createLink('index', 'index', "open=$url");