mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 01:10:42 +08:00
[Legacy] Update legacy to redirect to New UI Login
This commit is contained in:
parent
783d60bac8
commit
0b4d31e64d
1 changed files with 9 additions and 2 deletions
|
@ -622,7 +622,14 @@ class SugarAuthenticate
|
|||
*/
|
||||
public function redirectToLogin(SugarApplication $app)
|
||||
{
|
||||
$loginVars = $app->createLoginVars();
|
||||
SugarApplication::redirect('index.php?action=Login&module=Users' . $loginVars);
|
||||
$base = $_SERVER['REQUEST_URI'];
|
||||
|
||||
$legacyCheck = explode('legacy/', $base);
|
||||
$base = count($legacyCheck) > 1 ? $legacyCheck[0] : $base;
|
||||
|
||||
$epCheck = explode('ep/', $base);
|
||||
$base = count($epCheck) > 1 ? $epCheck[0] : $base;
|
||||
|
||||
SugarApplication::redirect($base . '#/Login');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue