In base PasswordResetRequestForm model:
public function rules()
{
return [
['email', 'exist',
'targetClass' => '\common\models\User',
'filter' => ['status' => User::STATUS_ACTIVE],
'message' => 'Such user is not registered. '.BaseHtml::a('Signup.',['site/signup'])
],
];
}
But link renders encoded. How to force it not to be encoded? Where should I do it, in ActiveForm, in field config, or in validation rule?
I don't know about the past, but now you can configure it in the fieldConfig:
$form = ActiveForm::begin([
'fieldConfig' => [
'errorOptions' => ['encode' => false],
],
]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With