<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Login With Email</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Thu, 23 Apr 2026 22:19:19 -0000</pubDate>

		<item>
			<title>JonnyM</title>
			<description><![CDATA[I looked into the Cotonti files and found that as far as I know, you only have to change one single line of code to allow users to login with their e-mail.<br />
<br />
Open the file system/core/users/users.auth.inc.php and find the following line of code ( line nr: 44): <br />
<pre class="code">$sql = sed_sql_query(&quot;SELECT user_id, user_maingrp, user_banexpire, user_skin, user_theme, user_lang FROM $db_users WHERE user_password='$rmdpass' AND user_name='&quot;.sed_sql_prep($rusername).&quot;'&quot;);</pre>
<br />
and change it into:<br />
<br />
<pre class="code">$sql = sed_sql_query(&quot;SELECT user_id, user_maingrp, user_banexpire, user_skin, user_theme, user_lang FROM $db_users WHERE user_password='$rmdpass' AND user_email='&quot;.sed_sql_prep($rusername).&quot;'&quot;);</pre>
<br />
Notice how all I did was change the user_name part in the SQL WHERE clause into user_email.<br />
<br />
Now I haven't tested this more than logged in once, so it's up to you and at your own risk if you want to use this core hack. But there shouldn't be any problems as far as I can tell.]]></description>
			<pubDate>Thu, 21 May 2009 21:52:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12748]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[For the email login thing, you could just set the email address as the username (and optionally use an extra field to replace the username field, so you can still put a username next to posts). I'm not sure @ is allowed in username, but that shouldn't be to hard to bypass.]]></description>
			<pubDate>Thu, 21 May 2009 08:54:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12713]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[We'd have to register cottonti.com for that <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/grin.gif" alt=":-D" /> <br />
<br />
It is, I had this running on two domains with the beta url system, but the one posted doesnt do that since it's crashing with the category system.<br />
<br />
But yea, possible.]]></description>
			<pubDate>Thu, 21 May 2009 07:06:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12712]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[No worries. its ok,<br />
<br />
edit: also is it possable for usernames to be like chobblr.cottonti.com ?]]></description>
			<pubDate>Thu, 21 May 2009 05:24:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12709]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[Sorry :)]]></description>
			<pubDate>Thu, 21 May 2009 05:04:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12708]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[hmmm.. dammm, don't want to keep hacking, is there a alternative ?]]></description>
			<pubDate>Thu, 21 May 2009 05:00:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12707]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[It isnt. But as usual, with a lot of hacking, it would be.]]></description>
			<pubDate>Thu, 21 May 2009 04:54:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12706]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[Hi is it possible to have it so users have to sign in with there email address they registered instead of there username.]]></description>
			<pubDate>Thu, 21 May 2009 04:53:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2777&d=0#post12705]]></link>
		</item>
	</channel>
</rss>