Skip to content

Commit

Permalink
improv. remove useless DS
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo committed Jan 16, 2022
1 parent 9b84b6a commit e6640b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Controller/UserController.php
Expand Up @@ -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'))
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e6640b6

Please sign in to comment.