No specialchars in Username (user_account)

Author Message

John Moritz

Saturday 04 October 2008 7:54:43 pm

Hello,

i dont want specialchars allowed for the Username of my community members. Only 0-9, a-z, A-Z and _ - should be allowed. The minimum and maximum characters should be between 3-12.

Is there a ini setting to make this possible or should i hack register.php? I could do this with javascript but an enhanced user can avoid this very easy.

André R.

Sunday 05 October 2008 6:51:17 am

Could you add a comment here with what your requirements are?

http://issues.ez.no/IssueView.php?Id=13587&activeItem=6

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

John Moritz

Tuesday 14 July 2009 2:25:49 pm

Today i found out that ezPublish has included this. And i just want to say wow, and thanks for doin this. Every day i see clear that choosing ezpublish was the best decision i have made! Move on ez...

Now we can use:

[UserSettings]
UserNameValidationRegex[wh]=/[^A-Za-z0-9_-]/
UserNameValidationErrorText[wh]=The username can only contain a-z, digits, underline or hyphen.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.