From 27740669e64f774650bb5a15a7e1cd828601a4a4 Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Fri, 10 Apr 2020 15:56:20 +0100 Subject: [PATCH] FEAT #13670 TIME 0:15 change link to update password email --- src/app/user/controllers/UserController.php | 2 +- src/core/controllers/AuthenticationController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/user/controllers/UserController.php b/src/app/user/controllers/UserController.php index 2b8227881f5..2609829c332 100755 --- a/src/app/user/controllers/UserController.php +++ b/src/app/user/controllers/UserController.php @@ -1653,7 +1653,7 @@ class UserController $resetToken = AuthenticationController::getResetJWT(['id' => $user['id'], 'expirationTime' => 3600]); // 1 hour UserModel::update(['set' => ['reset_token' => $resetToken], 'where' => ['id = ?'], 'data' => [$user['id']]]); - $url = UrlController::getCoreUrl() . 'apps/maarch_entreprise/index.php?display=true&page=login&update-password-token=' . $resetToken; + $url = UrlController::getCoreUrl() . 'dist/index.html#/update-password?token=' . $resetToken; $configuration = ConfigurationModel::getByService(['service' => 'admin_email_server', 'select' => ['value']]); $configuration = json_decode($configuration['value'], true); if (!empty($configuration['from'])) { diff --git a/src/core/controllers/AuthenticationController.php b/src/core/controllers/AuthenticationController.php index 32244d06f46..d74d1cf7b7f 100755 --- a/src/core/controllers/AuthenticationController.php +++ b/src/core/controllers/AuthenticationController.php @@ -317,7 +317,7 @@ class AuthenticationController $resetToken = AuthenticationController::getResetJWT(['id' => $args['userId'], 'expirationTime' => 1209600]); // 14 days UserModel::update(['set' => ['reset_token' => $resetToken], 'where' => ['id = ?'], 'data' => [$args['userId']]]); - $url = UrlController::getCoreUrl() . 'apps/maarch_entreprise/index.php?display=true&page=login&update-password-token=' . $resetToken; + $url = UrlController::getCoreUrl() . 'dist/index.html#/update-password?token=' . $resetToken; $configuration = ConfigurationModel::getByService(['service' => 'admin_email_server', 'select' => ['value']]); $configuration = json_decode($configuration['value'], true); -- GitLab