<?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>Tue, 22 May 2012 03:36:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Getting Xdebug to work with Apache/XAMPP to debug PHP : BLOG</title>
		<link>http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/comment-page-1/#comment-295422</link>
		<dc:creator>Getting Xdebug to work with Apache/XAMPP to debug PHP : BLOG</dc:creator>
		<pubDate>Wed, 07 Dec 2011 01:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/#comment-295422</guid>
		<description>[...] a project you&#8217;d like to debug. In my case, I&#8217;ve selected src/demo/index.php from my Challenge-Response PHP Login System project. Open the file, and then go to the Run Menu and select Debug Configurations&#8230; or Open [...]</description>
		<content:encoded><![CDATA[<p>[...] a project you&rsquo;d like to debug. In my case, I&rsquo;ve selected src/demo/index.php from my Challenge-Response <acronym class="uttInitialism" title="PHP: Hypertext Preprocessor">PHP</acronym> Login System project. Open the file, and then go to the Run Menu and select Debug Configurations&hellip; or Open [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/comment-page-1/#comment-199948</link>
		<dc:creator>Stephan</dc:creator>
		<pubDate>Sat, 06 Nov 2010 19:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://unitstep.net/blog/2008/03/29/a-challenge-response-ajax-php-login-system/#comment-199948</guid>
		<description>Hi, Peter

jQuery up to version 1.3 worked fine with your script, but version 1.4+ returned an error after the json challenges are received.

It seems from version 1.4 onwards they changed the .ajax request to return an error if the returned data wasn&#039;t &quot;proper&quot; json.

v1.4+ doesn&#039;t like the returned strings to be wrapped with apostrophes. I changed the index.php file to return the challenges wrapped in quotes and it works fine now.

Cheers from South Africa!

Stephan</description>
		<content:encoded><![CDATA[<p>Hi, Peter</p>
<p>jQuery up to version 1.3 worked fine with your script, but version 1.4+ returned an error after the json challenges are received.</p>
<p>It seems from version 1.4 onwards they changed the .ajax request to return an error if the returned data wasn&#8217;t &#8220;proper&#8221; json.</p>
<p>v1.4+ doesn&#8217;t like the returned strings to be wrapped with apostrophes. I changed the index.php file to return the challenges wrapped in quotes and it works fine now.</p>
<p>Cheers from South Africa!</p>
<p>Stephan</p>
]]></content:encoded>
	</item>
	<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>

