From e6640b6635d9e7b9350b38885879859965c2bf07 Mon Sep 17 00:00:00 2001 From: nivcoo <36514752+nivcoo@users.noreply.github.com> Date: Mon, 17 Jan 2022 00:26:27 +0100 Subject: [PATCH] improv. remove useless DS --- app/Controller/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controller/UserController.php b/app/Controller/UserController.php index 1ff9148e..25631482 100755 --- a/app/Controller/UserController.php +++ b/app/Controller/UserController.php @@ -72,7 +72,7 @@ function ajax_register() if ($this->Configuration->getKey('confirm_mail_signup')) { $confirmCode = substr(md5(uniqid()), 0, 12); $emailMsg = $this->Lang->get('EMAIL__CONTENT_CONFIRM_MAIL', [ - '{LINK}' => Router::url('/user/confirm/', true) . $confirmCode, + '{LINK}' => $this->Configuration->getKey('website_url') . "/user/confirm/$confirmCode", '{IP}' => $this->Util->getIP(), '{USERNAME}' => $this->request->data['pseudo'], '{DATE}' => $this->Lang->date(date('Y-m-d H:i:s')) @@ -225,7 +225,7 @@ function ajax_lostpasswd() $message = $this->Lang->get('USER__PASSWORD_RESET_EMAIL_CONTENT', [ '{EMAIL}' => $this->request->data['email'], '{PSEUDO}' => $search['User']['pseudo'], - '{LINK}' => $this->Configuration->getKey('website_url') . DS . "/?resetpasswd_$key" + '{LINK}' => $this->Configuration->getKey('website_url') . "/?resetpasswd_$key" ]); $event = new CakeEvent('beforeSendResetPassMail', $this, ['user_id' => $search['User']['id'], 'key' => $key]); $this->getEventManager()->dispatch($event);