J3 Issue ?
avatar baijianpeng
baijianpeng
28 Feb 2017

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.

avatar baijianpeng baijianpeng - open - 28 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 28 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Feb 2017
avatar Spudley
Spudley - comment - 28 Feb 2017

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)

avatar baijianpeng
baijianpeng - comment - 28 Feb 2017

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.

avatar arrowthemes
arrowthemes - comment - 2 Mar 2017

+1

avatar Spudley
Spudley - comment - 3 Mar 2017

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.

avatar PhilETaylor
PhilETaylor - comment - 4 Mar 2017

This is not a bug or issue - this is a feature request right?

avatar Spudley
Spudley - comment - 4 Mar 2017

@PhilETaylor that's how I interpreted it.

avatar yvesh
yvesh - comment - 4 Mar 2017

Yep, sounds like a feature request.

You can use neary ANY character in "username" and "Name" field;

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..

You can not input a "Name" longer than 20 (or 30) characters;

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..

You can use ANY email address!

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.

avatar dgt41
dgt41 - comment - 4 Mar 2017

@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

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category com_users
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Category com_users Authentication com_users Feature Request
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Priority Medium Low
Status New Discussion
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar martinlines
martinlines - comment - 12 Apr 2018

a2-f9-m-95505b10885104ca3ec56d8e3f05a64f55a64eac

Spamming is really getting out of hand

avatar ot2sen
ot2sen - comment - 12 Apr 2018

@martinlines Activate the inbuilt Captcha and try see what happens. You will be positively surpriced how well it works on the issue you see ;)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Apr 2018

@martinlines Please ask help on the forums. This repository concerns in first Place Joomla-Core coding, thanks.

avatar Bakual
Bakual - comment - 13 Apr 2018

I'm closing this issue as it is not something we will do in core.
Also there are already existing solutions both in core (captcha) and 3rd party (spam control extensions) which will help with the original issue.

avatar Bakual Bakual - change - 13 Apr 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-04-13 10:20:47
Closed_By Bakual
Labels Added: J3 Issue
avatar Bakual Bakual - close - 13 Apr 2018

Add a Comment

Login with GitHub to post a comment