Username validation on registration issue in 5.2.0-B2

5 views
Skip to first unread message

Alexander Obuhovich

unread,
Mar 15, 2012, 4:44:00 AM3/15/12
to In-Portal Bugs
When administrator have enabled registration by e-mail on website, then Username field is no longer required.

This sounds good, but since we have username length validation always enabled, then I still get "Field value length is out of range, possible value length from 3 to 255" error for Username field.


Not sure if it's a problem made by user or by In-Portal. Since when enabling by e-mail registration administrator also sees that 3-255 username limit setting on the same page and ca change it to 0-255 and everything will be ok.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Phil

unread,
Mar 15, 2012, 5:04:10 AM3/15/12
to in-port...@googlegroups.com
Is it needed to allow an username of less than 3 chars?


Envoyé avec Sparrow

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
Mar 15, 2012, 5:07:20 AM3/15/12
to in-port...@googlegroups.com
Nope, but when you are not required to enter username (on a registration form) at all and you're asked for it to be at least 3 symbols long sounds strange.

Phil

unread,
Mar 15, 2012, 5:09:11 AM3/15/12
to in-port...@googlegroups.com
ah, that's right :)


Envoyé avec Sparrow

Dmitry A.

unread,
Mar 15, 2012, 6:23:07 PM3/15/12
to in-port...@googlegroups.com
Sounds like a BUG to me since if field is NOT required anymore (not used) why would we check the length in it?

Am I missing something?


DA 

Phil

unread,
Mar 15, 2012, 6:24:06 PM3/15/12
to in-port...@googlegroups.com
nope, seems a real bug :)


Envoyé avec Sparrow

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/j1kXz_pXNpQJ.

Alexander Obuhovich

unread,
Mar 16, 2012, 4:56:49 AM3/16/12
to in-port...@googlegroups.com
In-Portal has a set of validation rules you can apply on a field and they are listed here: http://guide.in-portal.org/eng/index.php/K4:Defining_Database%2C_Virtual_and_Calculated_Fields#Validation_Options 

Each of the rules works on it's own. However some rules do sort of required checks on field value, e.g. min_len, min_val.

Usually it's up to a developer not to set conflicting validation rules, like 'required' => 0, 'min_len' => 3, in this case. But in this case these validation rules are set internally based on user configuration section.
And yes, it seems that we shouldn't set username length validation if it's not required.

Dmitry A.

unread,
Mar 22, 2012, 2:29:12 PM3/22/12
to in-port...@googlegroups.com
Here is a new task for this bug and screenshot for clearity:

1230: Issue with Username Validation on User Registration & Edit



DA
Username-NonRequired.png
Reply all
Reply to author
Forward
0 new messages