<?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: Resetting Password with ASP.NET 2.0 Membership and Multiple Providers</title>
	<atom:link href="http://peterkellner.net/2007/02/15/resetpasswordaspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/</link>
	<description>Specializing in Microsoft Web and Database Technologies</description>
	<lastBuildDate>Fri, 30 Jul 2010 08:27:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Caroline Pratt</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-25547</link>
		<dc:creator>Caroline Pratt</dc:creator>
		<pubDate>Wed, 04 Nov 2009 13:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-25547</guid>
		<description>Todays fresh passes. 4/11-09, Barely Legal Pass! Link/Download (http://sharembit.com/386/bar-legal.zip.html)</description>
		<content:encoded><![CDATA[<p>Todays fresh passes. 4/11-09, Barely Legal Pass! Link/Download (<a href="http://sharembit.com/386/bar-legal.zip.html">http://sharembit.com/386/bar-legal.zip.html</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Payne</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-25248</link>
		<dc:creator>Aaron Payne</dc:creator>
		<pubDate>Wed, 19 Aug 2009 21:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-25248</guid>
		<description>Thank you!!!

Saved me a lot of time!</description>
		<content:encoded><![CDATA[<p>Thank you!!!</p>
<p>Saved me a lot of time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Wannall</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-25217</link>
		<dc:creator>Rick Wannall</dc:creator>
		<pubDate>Wed, 05 Aug 2009 05:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-25217</guid>
		<description>Thank you!!!!

I wanted to continue to use the randomly generated password in our store site, so I went with this:

U.ResetPassword();
string newPassword = U.GetPassword();

and then some code to send the email

Thank you so much!!  I was going nuts having to deal with users who couldn&#039;t remember their anwer, so I wanted to eliminate the step altogether.  I looked around anough to get really frustrated, and then ... voila!!</description>
		<content:encoded><![CDATA[<p>Thank you!!!!</p>
<p>I wanted to continue to use the randomly generated password in our store site, so I went with this:</p>
<p>U.ResetPassword();<br />
string newPassword = U.GetPassword();</p>
<p>and then some code to send the email</p>
<p>Thank you so much!!  I was going nuts having to deal with users who couldn&#8217;t remember their anwer, so I wanted to eliminate the step altogether.  I looked around anough to get really frustrated, and then &#8230; voila!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-25105</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sat, 11 Jul 2009 03:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-25105</guid>
		<description>Simple, elegant, and although published 2 1/2 years ago, stills proves helpful today. This saved me so much time and frustration. Thank you for sharing it, Peter.</description>
		<content:encoded><![CDATA[<p>Simple, elegant, and although published 2 1/2 years ago, stills proves helpful today. This saved me so much time and frustration. Thank you for sharing it, Peter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-25018</link>
		<dc:creator>Frederick</dc:creator>
		<pubDate>Tue, 23 Jun 2009 18:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-25018</guid>
		<description>Thanks for the hint!
Here&#039;s my solution that worked for me.

http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_2.0/Q_24515442.html</description>
		<content:encoded><![CDATA[<p>Thanks for the hint!<br />
Here&#8217;s my solution that worked for me.</p>
<p><a href="http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_2.0/Q_24515442.html">http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_2.0/Q_24515442.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurie</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-24729</link>
		<dc:creator>Laurie</dc:creator>
		<pubDate>Fri, 08 May 2009 15:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-24729</guid>
		<description>Thanks for the tip, Peter.  This was extremely useful!</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, Peter.  This was extremely useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Thomson</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-4676</link>
		<dc:creator>Jeremy Thomson</dc:creator>
		<pubDate>Mon, 29 Sep 2008 11:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-4676</guid>
		<description>Hi,

Thanks for the advice on setting up the second membership provider to resolve this issue.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the advice on setting up the second membership provider to resolve this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kellner</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-598</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Tue, 17 Jun 2008 15:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-598</guid>
		<description>I should not have referenced a custom membership provider in my example.  Better to have done something like:

&lt;membership defaultProvider=&quot;MySqlMembershipProvider&quot; &gt;
  &lt;providers&gt;
    &lt;clear /&gt;
    &lt;add name=&quot;MySqlMembershipProvider&quot;
         connectionStringName=&quot;MyLocalSQLServer&quot;
         applicationName=&quot;MyAppName&quot;
         type=&quot;System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt;
  &lt;/providers&gt;
&lt;/membership&gt;</description>
		<content:encoded><![CDATA[<p>I should not have referenced a custom membership provider in my example.  Better to have done something like:</p>
<p><membership defaultProvider="MySqlMembershipProvider" ></p>
<providers>
    <clear /><br />
    <add name="MySqlMembershipProvider"<br />
         connectionStringName="MyLocalSQLServer"<br />
         applicationName="MyAppName"<br />
         type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </providers>
</membership></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-597</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 17 Jun 2008 13:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-597</guid>
		<description>Hi Peter,

First, thanks for creating this solution, as I am sure it will work for me. Many thanks to you and others who provide examples of their work.

I am having the same problem as Stephen:

Parser Error Message: Could not load type ‘SqlProviderOneShot.SqlMembershipProvider’.

Source Error:

Line 19:
Line 20:

Do I need to create another complete custom MembershipProvider class? or ?

Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>First, thanks for creating this solution, as I am sure it will work for me. Many thanks to you and others who provide examples of their work.</p>
<p>I am having the same problem as Stephen:</p>
<p>Parser Error Message: Could not load type ‘SqlProviderOneShot.SqlMembershipProvider’.</p>
<p>Source Error:</p>
<p>Line 19:<br />
Line 20:</p>
<p>Do I need to create another complete custom MembershipProvider class? or ?</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-596</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Sun, 11 May 2008 04:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-596</guid>
		<description>After talking with Peter, and looking at his code again, it worked like a champ.  The part that kind of threw me for a loop was using the reset function as the old password.  Here is my code in VB. Keep in mind that my provider MembersAdmin is just for the admin section of the client&#039;s site.

Dim U As MembershipUser = Membership.Providers(&quot;MembersAdmin&quot;).GetUser(SUserName, False)
        If Not U Is Nothing Then
            U.ChangePassword(U.ResetPassword(), strPassword)
            txtPassword.Text = &quot;&quot;
            msgProgress.Text = &quot;Password Changed&quot;
        End If</description>
		<content:encoded><![CDATA[<p>After talking with Peter, and looking at his code again, it worked like a champ.  The part that kind of threw me for a loop was using the reset function as the old password.  Here is my code in VB. Keep in mind that my provider MembersAdmin is just for the admin section of the client&#8217;s site.</p>
<p>Dim U As MembershipUser = Membership.Providers(&#8220;MembersAdmin&#8221;).GetUser(SUserName, False)<br />
        If Not U Is Nothing Then<br />
            U.ChangePassword(U.ResetPassword(), strPassword)<br />
            txtPassword.Text = &#8220;&#8221;<br />
            msgProgress.Text = &#8220;Password Changed&#8221;<br />
        End If</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-595</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Sun, 11 May 2008 02:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-595</guid>
		<description>Atomiton

I am in the same boat as Kenny.  I have a client that needs to be able to change a password for their user.  Sometimes it is like pulling teeth to get these guys to walk through the process.  So I set it up as above, but in order to change the password, I need old and new.  If i reset it, it will go to their email and it is lost.  So I figure my choices are like this.

1) change their email to the admins, fire the reset, get the new password.  Then change their email back, use the emailed password to change the password to what they wanted.

2) somehow reset the password and display it on the screen without actually mailing it.  Follow the second half of #1 and change to what they wanted.

3) Figure out how to hash the new password and store that result in the table with the salt key and bypass the provider.  Just do a straight stored procedure.

Any thought to point me in the right direction and maybe shoot holes in my thinking?  The biggest thing I need to be able to set the password to a password of my choosing, through an admin account.  Everything I can think of comes up messy.</description>
		<content:encoded><![CDATA[<p>Atomiton</p>
<p>I am in the same boat as Kenny.  I have a client that needs to be able to change a password for their user.  Sometimes it is like pulling teeth to get these guys to walk through the process.  So I set it up as above, but in order to change the password, I need old and new.  If i reset it, it will go to their email and it is lost.  So I figure my choices are like this.</p>
<p>1) change their email to the admins, fire the reset, get the new password.  Then change their email back, use the emailed password to change the password to what they wanted.</p>
<p>2) somehow reset the password and display it on the screen without actually mailing it.  Follow the second half of #1 and change to what they wanted.</p>
<p>3) Figure out how to hash the new password and store that result in the table with the salt key and bypass the provider.  Just do a straight stored procedure.</p>
<p>Any thought to point me in the right direction and maybe shoot holes in my thinking?  The biggest thing I need to be able to set the password to a password of my choosing, through an admin account.  Everything I can think of comes up messy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atomiton</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-584</link>
		<dc:creator>Atomiton</dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-584</guid>
		<description>Kenny... not sure if you&#039;re still reading this... but it&#039;s probably better to just use the ResetPassword() method.  It will email them their new password and you don&#039;t have to worry about it.  It&#039;s more secure too.

You will need to implement two membership profiles for this.

I won&#039;t go into details as there are lots of posts explaining it better than I do.

However, if you&#039;re looking at Adding an AdminProvider for the built-in SQL Express DB that is created when you enable security from the WAT while leaving the default one for users, this could be your Web.config:

&lt;membership defaultProvider=ACPMembershipProvider&quot;&gt;
  &lt;providers&gt;
    &lt;clear/&gt;
    &lt;add name=&quot;ACPMembershipProvider&quot; type=&quot;System.Web.Security.SqlMembershipProvider&quot;
    connectionStringName=&quot;ACPDevSQL&quot;
    applicationName=&quot;ACPPortal&quot;
    minRequiredPasswordLength=&quot;3&quot;
    minRequiredNonalphanumericCharacters=&quot;0&quot;
    enablePasswordRetrieval=&quot;true&quot;
    passwordForma=&quot;Encrypted&quot;
    enablePasswordReset=&quot;true&quot;
    requiresQuestionAndAnswer=&quot;true&quot;
    requiresUniqueEmail=&quot;false&quot;/&gt;
    &lt;name=&quot;ACPMembershipProviderAdmin&quot; type=&quot;System.Web.Security.SqlMembershipProvider&quot;
    connectionStringName=&quot;ACPDevSQL&quot;
    applicationName=&quot;ACPPortal&quot;
    minRequiredPasswordLength=&quot;3&quot;
    minRequiredNonalphanumericCharacters=&quot;0&quot;
    enablePasswordRetrieval=&quot;true&quot;
    passwordForma=&quot;Encrypted&quot;
    enablePasswordReset=&quot;true&quot;
    requiresQuestionAndAnswer=&quot;false&quot;
    requiresUniqueEmail=&quot;false&quot;/&gt;
  &lt;/providers&gt;&lt;/membership&gt;</description>
		<content:encoded><![CDATA[<p>Kenny&#8230; not sure if you&#8217;re still reading this&#8230; but it&#8217;s probably better to just use the ResetPassword() method.  It will email them their new password and you don&#8217;t have to worry about it.  It&#8217;s more secure too.</p>
<p>You will need to implement two membership profiles for this.</p>
<p>I won&#8217;t go into details as there are lots of posts explaining it better than I do.</p>
<p>However, if you&#8217;re looking at Adding an AdminProvider for the built-in SQL Express DB that is created when you enable security from the WAT while leaving the default one for users, this could be your Web.config:</p>
<p>&lt;membership defaultProvider=ACPMembershipProvider&#8221;&gt;<br />
  &lt;providers&gt;<br />
    &lt;clear/&gt;<br />
    &lt;add name=&#8221;ACPMembershipProvider&#8221; type=&#8221;System.Web.Security.SqlMembershipProvider&#8221;<br />
    connectionStringName=&#8221;ACPDevSQL&#8221;<br />
    applicationName=&#8221;ACPPortal&#8221;<br />
    minRequiredPasswordLength=&#8221;3&#8243;<br />
    minRequiredNonalphanumericCharacters=&#8221;0&#8243;<br />
    enablePasswordRetrieval=&#8221;true&#8221;<br />
    passwordForma=&#8221;Encrypted&#8221;<br />
    enablePasswordReset=&#8221;true&#8221;<br />
    requiresQuestionAndAnswer=&#8221;true&#8221;<br />
    requiresUniqueEmail=&#8221;false&#8221;/&gt;<br />
    &lt;name=&#8221;ACPMembershipProviderAdmin&#8221; type=&#8221;System.Web.Security.SqlMembershipProvider&#8221;<br />
    connectionStringName=&#8221;ACPDevSQL&#8221;<br />
    applicationName=&#8221;ACPPortal&#8221;<br />
    minRequiredPasswordLength=&#8221;3&#8243;<br />
    minRequiredNonalphanumericCharacters=&#8221;0&#8243;<br />
    enablePasswordRetrieval=&#8221;true&#8221;<br />
    passwordForma=&#8221;Encrypted&#8221;<br />
    enablePasswordReset=&#8221;true&#8221;<br />
    requiresQuestionAndAnswer=&#8221;false&#8221;<br />
    requiresUniqueEmail=&#8221;false&#8221;/&gt;<br />
  &lt;/providers&gt;&lt;/membership&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atomiton</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-583</link>
		<dc:creator>Atomiton</dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-583</guid>
		<description>Kenny... not sure if you&#039;re still reading this... but it&#039;s probably better to just use the ResetPassword() method.  It will email them their new password and you don&#039;t have to worry about it.  It&#039;s more secure too.

You will need to implement two membership profiles for this.

I won&#039;t go into details as there are lots of posts explaining it better than I do.

However, if you&#039;re looking at Adding an AdminProvider for the built-in SQL Express DB that is created when you enable security from the WAT while leaving the default one for users, this could be your Web.config:</description>
		<content:encoded><![CDATA[<p>Kenny&#8230; not sure if you&#8217;re still reading this&#8230; but it&#8217;s probably better to just use the ResetPassword() method.  It will email them their new password and you don&#8217;t have to worry about it.  It&#8217;s more secure too.</p>
<p>You will need to implement two membership profiles for this.</p>
<p>I won&#8217;t go into details as there are lots of posts explaining it better than I do.</p>
<p>However, if you&#8217;re looking at Adding an AdminProvider for the built-in SQL Express DB that is created when you enable security from the WAT while leaving the default one for users, this could be your Web.config:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ric Plouffe</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-594</link>
		<dc:creator>Ric Plouffe</dc:creator>
		<pubDate>Thu, 01 Nov 2007 16:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-594</guid>
		<description>Never mind the second question.  I have extended the ChangePassword control to include the Question/Answer combination.

The first question is still something I&#039;de like to figure out though.  Everything&#039;s working the way I have it set up now but it&#039;s kindof a bubble gum/scotch tape solution.

Thanks</description>
		<content:encoded><![CDATA[<p>Never mind the second question.  I have extended the ChangePassword control to include the Question/Answer combination.</p>
<p>The first question is still something I&#8217;de like to figure out though.  Everything&#8217;s working the way I have it set up now but it&#8217;s kindof a bubble gum/scotch tape solution.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ric Plouffe</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-588</link>
		<dc:creator>Ric Plouffe</dc:creator>
		<pubDate>Mon, 29 Oct 2007 17:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-588</guid>
		<description>I have a situation that I have two questions about.

First, the situation:

I have implemented a capability in our website where certain &quot;power&quot; users are able to add new website users to our database by uploading a spreadsheet.  The spreadsheet contains the new user&#039;s First and Last name and their e-mail; the e-mail becomes their login UserName.

Upon spreadsheet upload, as records are added to a staging table in our database, I call dbo.aspnet_Membership_CreateUser passing it the parameter values it expects. right now, I am passing a known hashed password and salt value and a known password question and password answer value.

As a separate process, I have a windows service that polls the database for newly-added users and calls Membership.Provider.ChangePassword to update their password to a unique temporary password and then send them an email with instructions how to log in with their email as the UserName and the temporary password we provide.

These users, when they log into the website, are forced to change their temporary password with the ChagePassword control before they can do anything else.

The first question is:

How can I create a hashed version of the temporary password in T-SQL that is compatible with Membership/Roles and pass it to dbo.aspnet_Membership_CreateUser right from the onset instead of having to change it (again) in my windows process?

The second and more urgent question is:

Since new users added in this fashion never see the CreateUserWizard control and therefore never have an opportunity to enter their own password question/answer combination, what would be the best (and most secure) way for me to prompt them for a new password question/answer combination at the time I direct them to change their passowrd?

Right now I have no &quot;Forgot Password?&quot; functionality because of this conundrum.

Any guidance would be greatly appreciated...</description>
		<content:encoded><![CDATA[<p>I have a situation that I have two questions about.</p>
<p>First, the situation:</p>
<p>I have implemented a capability in our website where certain &#8220;power&#8221; users are able to add new website users to our database by uploading a spreadsheet.  The spreadsheet contains the new user&#8217;s First and Last name and their e-mail; the e-mail becomes their login UserName.</p>
<p>Upon spreadsheet upload, as records are added to a staging table in our database, I call dbo.aspnet_Membership_CreateUser passing it the parameter values it expects. right now, I am passing a known hashed password and salt value and a known password question and password answer value.</p>
<p>As a separate process, I have a windows service that polls the database for newly-added users and calls Membership.Provider.ChangePassword to update their password to a unique temporary password and then send them an email with instructions how to log in with their email as the UserName and the temporary password we provide.</p>
<p>These users, when they log into the website, are forced to change their temporary password with the ChagePassword control before they can do anything else.</p>
<p>The first question is:</p>
<p>How can I create a hashed version of the temporary password in T-SQL that is compatible with Membership/Roles and pass it to dbo.aspnet_Membership_CreateUser right from the onset instead of having to change it (again) in my windows process?</p>
<p>The second and more urgent question is:</p>
<p>Since new users added in this fashion never see the CreateUserWizard control and therefore never have an opportunity to enter their own password question/answer combination, what would be the best (and most secure) way for me to prompt them for a new password question/answer combination at the time I direct them to change their passowrd?</p>
<p>Right now I have no &#8220;Forgot Password?&#8221; functionality because of this conundrum.</p>
<p>Any guidance would be greatly appreciated&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenny</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-593</link>
		<dc:creator>Kenny</dc:creator>
		<pubDate>Wed, 15 Aug 2007 01:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-593</guid>
		<description>Hi Peter,
I&#039;ve setup my page so that I have 2 textbox, 1 for the username and the other for the new password that I want to set it to. Is there a way so that my setup will work? I&#039;m the Admin and sometime the user want me to reset the password for them, either they forgot the password as well as the answer to the secret question, or something going on with their email.

Thank you very, very much.
Kenny.</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
I&#8217;ve setup my page so that I have 2 textbox, 1 for the username and the other for the new password that I want to set it to. Is there a way so that my setup will work? I&#8217;m the Admin and sometime the user want me to reset the password for them, either they forgot the password as well as the answer to the secret question, or something going on with their email.</p>
<p>Thank you very, very much.<br />
Kenny.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-592</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Wed, 15 Aug 2007 01:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-592</guid>
		<description>Kenny,
You are right that GetUser() does not work.  You can always get the currently logged in user by doing Context.User.Identity.Name.
-Peter Kellner</description>
		<content:encoded><![CDATA[<p>Kenny,<br />
You are right that GetUser() does not work.  You can always get the currently logged in user by doing Context.User.Identity.Name.<br />
-Peter Kellner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenny</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-591</link>
		<dc:creator>Kenny</dc:creator>
		<pubDate>Wed, 15 Aug 2007 00:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-591</guid>
		<description>Hi Peter,
Thank you very much for the article, this is what I&#039;m looking for... However, I&#039;ve received error in this code:

Membership mu = Membership.Providers[&quot;CustomizedAdminMembershipProvider&quot;].GetUser(Username);

This is the error:
No overload for mthod &#039;GetUser&#039; takes &#039;1&#039; arguments

Any idea why?
Thank you very much,
Kenny.</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
Thank you very much for the article, this is what I&#8217;m looking for&#8230; However, I&#8217;ve received error in this code:</p>
<p>Membership mu = Membership.Providers["CustomizedAdminMembershipProvider"].GetUser(Username);</p>
<p>This is the error:<br />
No overload for mthod &#8216;GetUser&#8217; takes &#8216;1&#8242; arguments</p>
<p>Any idea why?<br />
Thank you very much,<br />
Kenny.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Wadsworth</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-590</link>
		<dc:creator>Jeremy Wadsworth</dc:creator>
		<pubDate>Sat, 11 Aug 2007 23:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-590</guid>
		<description>This is a great post. It worked great after passing in the IsUserOnline value with the user name. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>This is a great post. It worked great after passing in the IsUserOnline value with the user name. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://peterkellner.net/2007/02/15/resetpasswordaspnet/comment-page-1/#comment-589</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Wed, 13 Jun 2007 09:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/02/15/resetpasswordaspnet/#comment-589</guid>
		<description>Hi Peter,

Thanks for the article, as i believe it can solve my problem but when i do ...







...and...

MembershipUser mu = Membership.Providers[&quot;SqlMembershipProviderOther&quot;].GetUser(UserName, false);

i get the following error.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type &#039;SqlProviderOneShot.SqlMembershipProvider&#039;.

Source Error:


Line 19:
Line 20:</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Thanks for the article, as i believe it can solve my problem but when i do &#8230;</p>
<p>&#8230;and&#8230;</p>
<p>MembershipUser mu = Membership.Providers["SqlMembershipProviderOther"].GetUser(UserName, false);</p>
<p>i get the following error.</p>
<p>Configuration Error<br />
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.</p>
<p>Parser Error Message: Could not load type &#8216;SqlProviderOneShot.SqlMembershipProvider&#8217;.</p>
<p>Source Error:</p>
<p>Line 19:<br />
Line 20:</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 13/67 queries in 0.051 seconds using disk
Content Delivery Network via cdn.peterkellner.net

Served from: peterkellner.net @ 2010-07-30 09:36:25 -->