Open shersuyarov opened 8 years ago
yii-user/models/UserRecoveryForm.php
array('login_or_email', 'match', 'pattern' => '/^[A-Za-z0-9@.-\s,]+$/u','message' => UserModule::t("Incorrect symbols (A-z0-9)."))
It didn't work properly. I tried to give it string "test@test.test" and it fails. I changed it to
array('login_or_email', 'match', 'pattern' => '/^[A-Za-z0-9@.\-\s,]+$/u','message' => UserModule::t("Incorrect symbols (A-z0-9).")),
However i'm not sure is it right, but now it passes validation
Also, i'he noticed, that in original case, it passes client validation, but on the server side it fails
yii-user/models/UserRecoveryForm.php
It didn't work properly. I tried to give it string "test@test.test" and it fails. I changed it to
However i'm not sure is it right, but now it passes validation