<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — [Request] Use email address to login rather than username]]></title>
		<link>https://punbb.informer.com/forums/topic/10784/request-use-email-address-to-login-rather-than-username/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/10784/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [Request] Use email address to login rather than username.]]></description>
		<lastBuildDate>Sun, 05 Mar 2006 19:56:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64179/#p64179</link>
			<description><![CDATA[<p><a href="http://punres.org/doku.php?id=how-tos:use_email_for_login">On the wiki.</a> But I don&#039;t really get the syntax of the DokuWiki tho <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sun, 05 Mar 2006 19:56:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64179/#p64179</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64175/#p64175</link>
			<description><![CDATA[<p>Ok, I&#039;ll put it on soonish <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sun, 05 Mar 2006 19:10:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64175/#p64175</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64089/#p64089</link>
			<description><![CDATA[<p>btw, elbekko this is a great thing to put on the PunRes wiki, <a href="http://punres.org/doku.php">http://punres.org/doku.php</a> for people to find in the future <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Connorhd)]]></author>
			<pubDate>Sun, 05 Mar 2006 00:46:51 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64089/#p64089</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64086/#p64086</link>
			<description><![CDATA[<p>Only the login part <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sat, 04 Mar 2006 23:48:29 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64086/#p64086</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64083/#p64083</link>
			<description><![CDATA[<p>does this replace the username <strong>displayed</strong> also?</p>]]></description>
			<author><![CDATA[null@example.com (Dr.Jeckyl)]]></author>
			<pubDate>Sat, 04 Mar 2006 23:44:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64083/#p64083</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64048/#p64048</link>
			<description><![CDATA[<p>No problem, it&#039;s just a small modification <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sat, 04 Mar 2006 15:46:57 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64048/#p64048</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64047/#p64047</link>
			<description><![CDATA[<p>THANKS, elbekko, for the code and for the clarity of your instructions!</p>]]></description>
			<author><![CDATA[null@example.com (mgrice)]]></author>
			<pubDate>Sat, 04 Mar 2006 15:45:52 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64047/#p64047</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64045/#p64045</link>
			<description><![CDATA[<p>This is quite easy <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Ok, open <strong>login.php</strong></p><p>Find this line:<br /></p><div class="codebox"><pre><code>$form_username     = trim($_POST[&#039;req_username&#039;]);</code></pre></div><p>Replace with <br /></p><div class="codebox"><pre><code>$form_email        = trim($_POST[&#039;req_email&#039;]);</code></pre></div><p>Then, find this line:<br /></p><div class="codebox"><pre><code>$username_sql     = ($db_type == &#039;mysql&#039; || $db_type == &#039;mysqli&#039;) ? &#039;username=\&#039;&#039;.$db-&gt;escape($form_username).&#039;\&#039;&#039; : &#039;LOWER(username)=LOWER(\&#039;&#039;.$db-&gt;escape($form_username).&#039;\&#039;)&#039;;</code></pre></div><p>Replace with:<br /></p><div class="codebox"><pre><code>$email_sql         = ($db_type == &#039;mysql&#039; || $db_type == &#039;mysqli&#039;) ? &#039;email=\&#039;&#039;.$db-&gt;escape($form_email).&#039;\&#039;&#039; : &#039;LOWER(email)=LOWER(\&#039;&#039;.$db-&gt;escape($form_email).&#039;\&#039;)&#039;;</code></pre></div><p>After that, find:<br /></p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;SELECT id, group_id, password, save_pass FROM &#039;.$db-&gt;prefix.&#039;users WHERE &#039;.$username_sql) or error(&#039;Unable to fetch user info&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>Replace with:<br /></p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;SELECT id, group_id, password, save_pass FROM &#039;.$db-&gt;prefix.&#039;users WHERE &#039;.$email_sql) or error(&#039;Unable to fetch user info&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>Find:<br /></p><div class="codebox"><pre><code>$required_fields = array(&#039;req_username&#039; =&gt; $lang_common[&#039;Username&#039;], &#039;req_password&#039; =&gt; $lang_common[&#039;Password&#039;]);</code></pre></div><p>Replace with:<br /></p><div class="codebox"><pre><code>$required_fields = array(&#039;req_email&#039; =&gt; $lang_common[&#039;E-mail&#039;], &#039;req_password&#039; =&gt; $lang_common[&#039;Password&#039;]);</code></pre></div><p>Find:<br /></p><div class="codebox"><pre><code>&lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Username&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;25&quot; maxlength=&quot;25&quot; tabindex=&quot;1&quot; /&gt;&lt;br /&gt;&lt;/label&gt;</code></pre></div><p>Replace with:<br /></p><div class="codebox"><pre><code>&lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;E-mail&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;req_email&quot; size=&quot;25&quot; maxlength=&quot;25&quot; tabindex=&quot;1&quot; /&gt;&lt;br /&gt;&lt;/label&gt;</code></pre></div><p>This should do it <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> Have fun <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sat, 04 Mar 2006 15:43:55 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64045/#p64045</guid>
		</item>
		<item>
			<title><![CDATA[[Request] Use email address to login rather than username]]></title>
			<link>https://punbb.informer.com/forums/post/64035/#p64035</link>
			<description><![CDATA[<p>I would like to have my users enter their email address and password in order to login. I still want to allow them to have/create a username at sign-up. But because people change their email addresses so frequently, and often forget to update it everywhere, my info quickly goes stale.</p><p>I have searched here and punres.org and did not find it. But that does not mean it hasn&#039;t been asked, and done, before.</p>]]></description>
			<author><![CDATA[null@example.com (mgrice)]]></author>
			<pubDate>Sat, 04 Mar 2006 14:52:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64035/#p64035</guid>
		</item>
	</channel>
</rss>
