<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : [Release] Custom account validation framework</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 29 Apr 2026 22:13:08 -0000</pubDate>

		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Only a little. ;-) I'm working on a project for a client which is based on Cotonti. At first I developed this for the project, but then I found not needing it, so I release it.]]></description>
			<pubDate>Zo, 28 Feb 2010 20:13:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5360&d=0#post23271]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[are you back :)))) ?]]></description>
			<pubDate>Zo, 28 Feb 2010 16:39:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5360&d=0#post23268]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[I'm working on a subscription-based webservice using Cotonti. For this I needed a way to automate account validation upon succesful payment by the customer/user. I decided to replace the default account validation, which is based on the user_lostpass key, by my own system, using a seperate validation key (lostpass key is not secure since a user can request it through the passrecover plugin).<br />
<br />
Note that this is a framework for writing your own validation script. By default this plugin will just auto-validate (skipping the default admin or email validation). You should make the necessary changes in accountvalidation.php (see the comments there for details).<br />
<br />
In order for this plugin to work you will need an extra hook in system/core/users/users.register.inc.php:<br />
<div class="highlight"><pre class="php">/* === Hook for the plugins === */
$extp = sed_getextplugins('users.register.validate.first');
if (is_array($extp))
{ foreach ($extp as $pl) { include_once($cfg&#091;'plugins_dir'&#093;.'/'.$pl&#091;'pl_code'&#093;.'/'.$pl&#091;'pl_file'&#093;.'.php'); } }
/* ===== */</pre></div>
<br />
Put it right below the following line (somewhere around 235):<br />
<div class="highlight"><pre class="php">elseif ($a=='validate' &amp;&amp; mb_strlen($v)==32)
{</pre></div>
Or you can just download the updated file <a href="http://trac.cotonti.com/export/1154/branches/genoa/system/core/users/users.register.inc.php">here</a>.<br />
<br />
Download the plugin <a href="http://www.cotonti.com/datas/users/accountvalidation_68.zip">here</a>.<br />
<br />
Please provide feedback or any bugs you may encounter.]]></description>
			<pubDate>Zo, 28 Feb 2010 09:43:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5360&d=0#post23264]]></link>
		</item>
	</channel>
</rss>