You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($this->getUsersTable()->resetToken($reference, [
'expiration' => Configure::read('Users.Token.expiration'),
'checkActive' => true,
'sendEmail' => true,
'emailTemplate' => 'CakeDC/Users.validation'
])) {
$this->Flash->success(__d(
'CakeDC/Users',
'Token has been reset successfully. Please check your email.'
));
} else {
$this->Flash->error(__d('CakeDC/Users', 'Token could not be reset'));
}
The emailTemplate parameter with the value CakeDC/Users.validation does not take effect, look the function resetToken() in file users/src/Model/Behavior/PasswordBehavior.php:42. This function call sendResetPasswordEmail() at end without emailTemplate parameter.
First of all i apologize for my bad english.
When I try to forward the validation email, the reset password template arrives in my box, then, when reviewing the source code, I find the following:
File: users/src/Controller/Traits/UserValidationTrait.php:91
The emailTemplate parameter with the value CakeDC/Users.validation does not take effect, look the function resetToken() in file users/src/Model/Behavior/PasswordBehavior.php:42. This function call sendResetPasswordEmail() at end without emailTemplate parameter.
After change the value of the function send() from resetPassword to validation this work fine.
The text was updated successfully, but these errors were encountered: