p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional ASP.NET 2.0 Security, Membership, and Role Management ISBN: 978-0-7645-9698-8 (http://p2p.wrox.com/book-professional-asp-net-2-0-security-membership-role-management-isbn-978-0-7645-9698-8-241/)
-   -   Password Recovery (http://p2p.wrox.com/book-professional-asp-net-2-0-security-membership-role-management-isbn-978-0-7645-9698-8/79191-password-recovery.html)

MAdams April 26th, 2010 12:03 PM

Password Recovery
 
I am new to ASP.Net and have been going through the book trying to figure out why my email does not include the new password after a user has requested a reset. I am using the PasswordRecovery control, with hashed passwords. I am assuming the control is suppose to send the new password automatically?? I get it to change the password and send the email, but does not include the new password. I think the web config is set up properly

Code:


<system.net>
    <mailSettings>
        <smtp deliveryMethod="Network" from="no_reply@kresa.org">
          <network defaultCredentials="true" host= "exchange.Kresa.org"
              password="" userName="" />   
        </smtp> 
    </mailSettings>
  </system.net>

Any help would be appreciated.

Imar May 1st, 2010 05:28 AM

Hi there,

So what does the e-mail include? Can you show an example? And how does your code for the recovery control look?

Imar

MAdams May 3rd, 2010 05:40 PM

Password Recovery issue
 
Hi,
I fixed one problem....I had custom text for the email message which was overriding the message that included the password. So, I get the password now in the email. But when I return to the login screen, it will not accept the new password.

Any ideas??
Thanks

Imar May 3rd, 2010 05:53 PM

Maybe you're using a password from an earlier attempt and it's been reset by now?

---------------------------------------------------------------------------------------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter.

Everyone is unique, except for me.
Author of Beginning ASP.NET 4 : in C# and VB, Beginning ASP.NET 3.5 : in C# and VB, and ASP.NET 2.0 Instant Results.
While typing this post, I was listening to: Paradise Circus by Massive Attack (From the album: Heligoland) What's This?

MAdams May 6th, 2010 08:58 AM

Password Recovery issue
 
No, I don't think that is it. I change the password, I instantly get the email, I navigate to that- cut and past the new password and enter it on the login screen and it tells me the password is not correct. I thought maybe it was a cookie issue, but I have cleared those and restarted the browser. I am stumped.

Imar May 6th, 2010 09:03 AM

Me too. This has always worked for me....

Imar

Imar May 6th, 2010 09:04 AM

Oh, maybe the account is blocked in the database?

Imar

MAdams May 6th, 2010 09:05 AM

password recovery
 
How would it be blocked and how would I fix that?

Imar May 6th, 2010 09:21 AM

It can be blocked when you use an invalid password too many times.

Take a look at columns such as IsLockedOut and LastLockoutDate of the aspnet_Membership table.

Does this book not talk about this as well?

Imar

MAdams May 6th, 2010 10:14 AM

password recovery
 
Lock out doesn't seem to be the problem. I am able to sign in then change the password and after the first attempt it doesn't let me use the new hashed password from the email message.

The book hasn't been very helpful at all on this subject. There needs to be a troubleshooting section for people like me that will have some kind of problem with it.


All times are GMT -4. The time now is 08:13 AM.

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.