|
|
@@ -10,7 +10,8 @@ use Opentalent\OtCore\Exception\ApiRequestException;
|
|
|
use Opentalent\OtCore\Logging\OtLogger;
|
|
|
use Opentalent\OtCore\Service\OpentalentApiService;
|
|
|
use Opentalent\OtCore\Service\OpentalentEnvService;
|
|
|
-use Opentalent\OtCore\Utility\UrlBuilder;
|
|
|
+use Opentalent\OtCore\Utility\NavigationUtils;
|
|
|
+use Opentalent\OtCore\Utility\UrlUtils;
|
|
|
use TYPO3\CMS\Core\Crypto\Random;
|
|
|
use TYPO3\CMS\Core\Database\ConnectionPool;
|
|
|
use TYPO3\CMS\Core\Database\Query\QueryHelper;
|
|
|
@@ -241,13 +242,10 @@ class OtAuthenticationService extends AbstractAuthenticationService
|
|
|
|
|
|
# Redirect the user if the password needs to be changed
|
|
|
if (isset($data['type']) && $data['type'] === 'change_password') {
|
|
|
- $redirectTo = UrlBuilder::concat(
|
|
|
- OpentalentEnvService::get('ADMIN_BASE_URL'),
|
|
|
- ["/account", $data['organization'], "secure/password/", $data['token']],
|
|
|
- []
|
|
|
+ $redirectTo = UrlUtils::join(
|
|
|
+ OpentalentEnvService::get('ADMIN_BASE_URL'), "/#/account/", $data['organization'], "/secure/password/", $data['token']
|
|
|
);
|
|
|
- echo "<body onload=\"window.location.replace('".$redirectTo."')\">";
|
|
|
- die;
|
|
|
+ NavigationUtils::redirect($redirectTo);
|
|
|
}
|
|
|
|
|
|
// The API accepted the login request
|