Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET 2.0 Security, Membership, and Role Management ISBN: 978-0-7645-9698-8
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Security, Membership, and Role Management by Stefan Schackow; ISBN: 9780764596988
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 Security, Membership, and Role Management ISBN: 978-0-7645-9698-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2010, 11:03 AM
Registered User
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
 
Old May 1st, 2010, 04:28 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old May 3rd, 2010, 04:40 PM
Registered User
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old May 3rd, 2010, 04:53 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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?
 
Old May 6th, 2010, 07:58 AM
Registered User
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
 
Old May 6th, 2010, 08:03 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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

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

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old May 6th, 2010, 08:04 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Oh, maybe the account is blocked in the database?

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

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old May 6th, 2010, 08:05 AM
Registered User
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default password recovery

How would it be blocked and how would I fix that?
 
Old May 6th, 2010, 08:21 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old May 6th, 2010, 09:14 AM
Registered User
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.




Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with password recovery control ghadeer_ BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 February 23rd, 2010 04:33 PM
problem with password recovery control ghadeer_ BOOK: Professional ASP.NET 3.5 Security, Membership, and Role Management ISBN: 978-0-470-37930-1 0 February 20th, 2010 07:10 AM
password recovery message kevin33 Wrox Book Feedback 5 November 14th, 2008 05:44 PM
recovery password Jophie BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 10th, 2008 05:39 PM
Profiles and Password Recovery Control Sheraz Khan BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 October 8th, 2007 03:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.