<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Challenge-Response Ajax PHP Login System</title>
	<atom:link href="http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/</link>
	<description>the home of peter chng</description>
	<lastBuildDate>Fri, 12 Mar 2010 05:13:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter Chng</title>
		<link>http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/comment-page-1/#comment-139776</link>
		<dc:creator>Peter Chng</dc:creator>
		<pubDate>Thu, 05 Feb 2009 03:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/#comment-139776</guid>
		<description>@Jens
Thanks for the tip! I will incorporate your changes into the next version...</description>
		<content:encoded><![CDATA[<p>@Jens<br />
Thanks for the tip! I will incorporate your changes into the next version&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens</title>
		<link>http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/comment-page-1/#comment-139569</link>
		<dc:creator>Jens</dc:creator>
		<pubDate>Mon, 02 Feb 2009 20:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/#comment-139569</guid>
		<description>Peter,

thanks for your thoughts and this script. It&#039;s worth to have a deeper look inside.

One improvement I have found by now: you can check if the password is equal to the username on the server-side too.

For this you could insert the following lines of code into  ChapAuthenticationImpl.php below the block for checking if the pwd is empty (line 205):
&lt;code&gt;    // Check if the plaintext password is the same as the username.
    else if ($this-&gt;passwordPlainTextTransform($username, $challenge1) == $password)
    {
      throw new ChapAuthenticationException(&#039;Password cannot be equal to the username&#039;);
    }
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>thanks for your thoughts and this script. It&#8217;s worth to have a deeper look inside.</p>
<p>One improvement I have found by now: you can check if the password is equal to the username on the server-side too.</p>
<p>For this you could insert the following lines of code into  ChapAuthenticationImpl.php below the block for checking if the pwd is empty (line 205):<br />
<code>    // Check if the plaintext password is the same as the username.<br />
    else if ($this-&gt;passwordPlainTextTransform($username, $challenge1) == $password)<br />
    {<br />
      throw new ChapAuthenticationException('Password cannot be equal to the username');<br />
    }<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PJ</title>
		<link>http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/comment-page-1/#comment-100844</link>
		<dc:creator>PJ</dc:creator>
		<pubDate>Sun, 30 Mar 2008 21:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/#comment-100844</guid>
		<description>Thanks, I&#039;ll try it out and try to comment on it later on this week!</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;ll try it out and try to comment on it later on this week!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
