Username validation at registration - Joomla! Forum - community, help and support


hi everyone,
i need validate format of username @ registration on of sites. 1 site, usernames must consist of 7 numbers, on different site must 10 numbers, next 1 requires username consisting of 2 letters @ beginning, followed 5 digits, , on.
my first thought was, must create plugin accomplish this, have no experience in writing joomla plugins @ looking different way (i not want solve javascript, solution must server-side). found info form validation @ https://docs.joomla.org/server-side_form_validation seems suitable needs. add new validation rule , create override of registration view in template folder but:
would (upgrade-)safe put new validation rule <joomla-directory>/components/com_users/models/rules/myrule.php?
i don't want mess around core files , i'd "right" way. on way choose , how highly appreciated.
best regards
markus

g'day, @sumawelt , welcome forum.

my first thoughts similar yours. in opinion, appropriate way deal seem to create authentication plugin regex check validated account name before passing account registration process engaged.

it's unique need and, agree you, it's not idea change or mess around joomla core.

i unable comment on whether it's idea add new validation rule in ../components/com_users/models/rules/myrule.php, sorry.





Comments

Popular posts from this blog

502 Bad Gateway nginx/1.10.0 (Ubuntu) - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support

Joomla update reporting error - Joomla! Forum - community, help and support