Model User allows underscore in user name.
The relevant validation rule from User model:
array('username', 'match', 'pattern' => '/^[A-Za-z0-9_]+$/u','message' =>
UserModule::t("Incorrect symbols (A-z0-9).")),
If a user tries to recover (reset) their password however, the UserRecoveryForm
model doesn't allow the login_or_email field to contain an underscore:
array('login_or_email', 'match', 'pattern' =>
'/^[A-Za-z0-9@.-\s,]+$/u','message' => UserModule::t("Incorrect symbols
(A-z0-9).")),
I changed the code in my instance to:
array('login_or_email', 'match', 'pattern' =>
'/^[A-Za-z0-9_@.-\s,]+$/u','message' => UserModule::t("Incorrect symbols
(A-z0-9).")),
Original issue reported on code.google.com by markadas...@gmail.com on 1 Jul 2011 at 5:53
Original issue reported on code.google.com by
markadas...@gmail.com
on 1 Jul 2011 at 5:53