Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login_or_email validatation pattern bug #90

Open
shersuyarov opened this issue Jan 21, 2016 · 1 comment
Open

login_or_email validatation pattern bug #90

shersuyarov opened this issue Jan 21, 2016 · 1 comment

Comments

@shersuyarov
Copy link

yii-user/models/UserRecoveryForm.php

array('login_or_email', 'match', 'pattern' => '/^[[email protected]\s,]+$/u','message' => UserModule::t("Incorrect symbols (A-z0-9)."))

It didn't work properly. I tried to give it string "[email protected]" 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

@shersuyarov
Copy link
Author

Also, i'he noticed, that in original case, it passes client validation, but on the server side it fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant