-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Please improve the user component to put some restriction on the registration form #14275
Comments
There are existing plugins that can do this. For example, this one: https://extensions.joomla.org/extensions/extension/access-a-security/site-access/registration-validation-pro/. (there are probably others, but I already know about that one and I didn't have time to search too deeply) |
Did you noticed that plugin has not been updated for almost 2 years? Not to mention that it is a Paid Download one. I think the Joomla core SHOULD put some restriction on the "username" field at least, because users can NOT edit the "username" value after registration, but they can edit "Name" and "Email". In order to avoid "weird" usernames, there MUST be some rules on it. Thank you. |
+1 |
I haven't modified the Joomla core, but I have written a plugin for you that should do what you want. Please see https://github.com/Spudley/plg_user_restrictusername Have tested it locally, but it could probably use a bit more testing. I don't have time for that right now, but thought I should let you take a look anyway. Let me know what you think. Hopefully it meets your needs. |
This comment was marked as abuse.
This comment was marked as abuse.
@PhilETaylor that's how I interpreted it. |
Yep, sounds like a feature request.
This are the rules: No space at beginning or end, at least 2 characters and must not contain the following characters: < > \ " ' % ; ( ) &. You can't change that behavior without massive b/c issues.. and the usernames are working, so i see no issue..
The hard limit is 400 (in the database column).. You don't know how long names get, maybe some one uses are company name or url in there.. Changing this behavior would also be b/c..
There are millions of valid mail ru users ;) What you are asking for is in my opinion nothing for core.. If you need customization you can use 3rd party plugins etc. |
@baijianpeng @yvesh as of 3.7 any text field can have a pattern which the validator will check against it, according to #13094. The missing link here for fully customisable form fields is a way to override the fields properties similar to the layouts. I know @phproberto has some working code for this, so I'm kindly asking him to make a PR |
@martinlines Activate the inbuilt Captcha and try see what happens. You will be positively surpriced how well it works on the issue you see ;) |
@martinlines Please ask help on the forums. This repository concerns in first Place Joomla-Core coding, thanks. |
I'm closing this issue as it is not something we will do in core. |
Steps to reproduce the issue
Register a new user account through Joomla core registration form (com_users).
Expected result
You can not use special character (like: empty space) in "username" field;
You can not input a "Name" longer than 20 (or 30) characters;
You can not use email address under certain domains (like: @mail.ru );
...
Actual result
You can use neary ANY character in "username" and "Name" field;
You can input a "Name" longer than 60 characters!
You can use ANY email address!
...
The Joomla website Admin can NOT put any restriction on the registration form!
System information (as much as possible)
Joomla 3.6.5
PHP 7.0.15
Additional comments
Could you please improve the com_users component to allow more options/restrictions on the user registration process?
Thank you.
The text was updated successfully, but these errors were encountered: