<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : [solved] Prevent spaces and extra letters in user name?</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Thu, 09 Apr 2026 03:36:38 -0000</pubDate>

		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	Thank you very much :)</p>
]]></description>
			<pubDate>Wed, 07 Nov 2012 12:51:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7204&d=0#post36156]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	It needs simple plugin creation with «hooked» on <code>users.register.add.validate</code></p>
<p>
	With several lines of actual code:</p>
<pre class="brush:php;">
$L['aut_notallowedname'] = 'Only letters, digits, hyphen, underscore allowed for User name ';
if (preg_match("/[/s&amp;\'\?\"]/", $ruser['user_name'])) cot_error('aut_notallowedname', 'rusername');</pre>
<p>
	Where «<strong>[/s&amp;\'\?\"]» </strong>set of unallowed symbols.</p>
]]></description>
			<pubDate>Tue, 06 Nov 2012 11:11:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7204&d=0#post36150]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[<p>
	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</p>
]]></description>
			<pubDate>Tue, 06 Nov 2012 11:09:30 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7204&d=0#post36149]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	How to create a filter during registration, preventing user to create usernames with spaces or forbidden letters (like &amp; or "')?</p>
]]></description>
			<pubDate>Tue, 06 Nov 2012 07:49:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7204&d=0#post36144]]></link>
		</item>
	</channel>
</rss>