cotonti.com : [solved] Prevent spaces and extra letters in user name? https://www.cotonti.com Laatste forum onderwerpen Cotonti en Tue, 03 Feb 2026 12:35:41 -0000 tensh Thank you very much :)

]]>
Wo, 07 Nov 2012 12:51:52 -0000
Macik It needs simple plugin creation with «hooked» on users.register.add.validate

With several lines of actual code:

$L['aut_notallowedname'] = 'Only letters, digits, hyphen, underscore allowed for User name ';
if (preg_match("/[/s&\'\?\"]/", $ruser['user_name'])) cot_error('aut_notallowedname', 'rusername');

Where «[/s&\'\?\"]» set of unallowed symbols.

]]>
Di, 06 Nov 2012 11:11:43 -0000
Kilandor You will need to create a plugin that hooks into users.register.add.validate and then you may check for any characters you don't want and then present an error

]]>
Di, 06 Nov 2012 11:09:30 -0000
tensh How to create a filter during registration, preventing user to create usernames with spaces or forbidden letters (like & or "')?

]]>
Di, 06 Nov 2012 07:49:21 -0000