Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
Old May 1st, 2010, 04:28 AM
Imar's Avatar
Wrox Author
Points: 66,542, Level: 100
Points: 66,542, Level: 100 Points: 66,542, Level: 100 Points: 66,542, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,118
Thanks: 65
Thanked 1,381 Times in 1,361 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!
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
  #4 (permalink)  
Old May 3rd, 2010, 04:53 PM
Imar's Avatar
Wrox Author
Points: 66,542, Level: 100
Points: 66,542, Level: 100 Points: 66,542, Level: 100 Points: 66,542, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,118
Thanks: 65
Thanked 1,381 Times in 1,361 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?
Reply With Quote
  #5 (permalink)  
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.
Reply With Quote
  #6 (permalink)  
Old May 6th, 2010, 08:03 AM
Imar's Avatar
Wrox Author
Points: 66,542, Level: 100
Points: 66,542, Level: 100 Points: 66,542, Level: 100 Points: 66,542, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,118
Thanks: 65
Thanked 1,381 Times in 1,361 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!
Reply With Quote
  #7 (permalink)  
Old May 6th, 2010, 08:04 AM
Imar's Avatar
Wrox Author
Points: 66,542, Level: 100
Points: 66,542, Level: 100 Points: 66,542, Level: 100 Points: 66,542, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,118
Thanks: 65
Thanked 1,381 Times in 1,361 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!
Reply With Quote
  #8 (permalink)  
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?
Reply With Quote
  #9 (permalink)  
Old May 6th, 2010, 08:21 AM
Imar's Avatar
Wrox Author
Points: 66,542, Level: 100
Points: 66,542, Level: 100 Points: 66,542, Level: 100 Points: 66,542, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,118
Thanks: 65
Thanked 1,381 Times in 1,361 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!
Reply With Quote
  #10 (permalink)  
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03: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 06:10 AM
password recovery message kevin33 Wrox Book Feedback 5 November 14th, 2008 04: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 04: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



All times are GMT -4. The time now is 11:44 PM.


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