<?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: Easy login recovery without compromising security</title>
	<atom:link href="http://jamesmckay.net/2008/06/easy-login-recovery-without-compromising-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesmckay.net/2008/06/easy-login-recovery-without-compromising-security/</link>
	<description>because there are few things that are less logical than business logic</description>
	<lastBuildDate>Sun, 20 May 2012 20:03:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: James</title>
		<link>http://jamesmckay.net/2008/06/easy-login-recovery-without-compromising-security/comment-page-1/#comment-131</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 22 Jul 2008 18:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://jamesmckay.net/2008/06/how-to-let-users-recover-their-logins-easily-without-compromising-security/#comment-131</guid>
		<description>It&#039;s a bit awkward because the ASP.NET membership provider and login controls aren&#039;t really designed with this kind of scenario in mind, so you will need to do a bit of coding to achieve it rather than the usual drag and drop. In particular:

1. Changing a password with the ASP.NET membership provider requires both the old password and the new password. However, you can get round this by calling &lt;code&gt;MembershipProvider.ResetPassword&lt;/code&gt; and passing the result to &lt;code&gt;MembershipProvider.ChangePassword&lt;/code&gt;.

2. You&#039;ll need to roll your own equivalent to the &lt;code&gt;PasswordRecovery&lt;/code&gt; control as it isn&#039;t designed with this in mind. It either sends out the user&#039;s old password or else it resets it to a new one and sends that instead. Also, if you want to send out links that expire after, say, a couple of hours or so, you will need to add an extra table to the database to contain them.</description>
		<content:encoded><![CDATA[<p>It&#8217;s a bit awkward because the ASP.NET membership provider and login controls aren&#8217;t really designed with this kind of scenario in mind, so you will need to do a bit of coding to achieve it rather than the usual drag and drop. In particular:</p>
<p>1. Changing a password with the ASP.NET membership provider requires both the old password and the new password. However, you can get round this by calling <code>MembershipProvider.ResetPassword</code> and passing the result to <code>MembershipProvider.ChangePassword</code>.</p>
<p>2. You&#8217;ll need to roll your own equivalent to the <code>PasswordRecovery</code> control as it isn&#8217;t designed with this in mind. It either sends out the user&#8217;s old password or else it resets it to a new one and sends that instead. Also, if you want to send out links that expire after, say, a couple of hours or so, you will need to add an extra table to the database to contain them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chad</title>
		<link>http://jamesmckay.net/2008/06/easy-login-recovery-without-compromising-security/comment-page-1/#comment-130</link>
		<dc:creator>chad</dc:creator>
		<pubDate>Mon, 21 Jul 2008 23:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://jamesmckay.net/2008/06/how-to-let-users-recover-their-logins-easily-without-compromising-security/#comment-130</guid>
		<description>Hi James,

Thanks for the post. I was curious if you found a way to implement a link-based password reset function in a MembershipProvider implementation. As far as I can tell, one of the existing methods would have to be hijacked in order to do it. Is there a more elegant way?

Thanks,
Chad</description>
		<content:encoded><![CDATA[<p>Hi James,</p>
<p>Thanks for the post. I was curious if you found a way to implement a link-based password reset function in a MembershipProvider implementation. As far as I can tell, one of the existing methods would have to be hijacked in order to do it. Is there a more elegant way?</p>
<p>Thanks,<br />
Chad</p>
]]></content:encoded>
	</item>
</channel>
</rss>

