Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - suggestion for forgot-password system
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

suggestion for forgot-password system

 Post Reply Post Reply
Author
frufru View Drop Down
Newbie
Newbie


Joined: 23 February 2006
Location: Canada
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote frufru Quote  Post ReplyReply Direct Link To This Post Topic: suggestion for forgot-password system
    Posted: 07 March 2008 at 5:11pm
I noticed that when you make a forgot-password request on an account (not even necessarily your own account), the password gets changed immediately and emailed to your account. I'm thinking that this may get annoying if people want to, because they could keep changing your password, and you'd have to keep checking your email and resetting it.

So yeah, since the passwords are 1-way encrypted, a good method would be to use some sort of key. So it goes like this:

1. User makes a forgot password request. Enters username/email... (CAPTCHA should still be there)
2. A 16-character key (or a similarly long one of random letters & numbers) is generated and stored to the database along with the person's username.
3. A URL is emailed to the person that goes something like...
http://forums.webwiz.net/forgotpass.asp?username=USERNAME&key=KEY

When they go to that link (and have the correct username corresponding to the right key), they will be given the option to change their password or cancel the request (which deletes the entry from the database). When the password is changed using the method, the entry representing the request is also deleted from the database.

(Oh, and perhaps include the IP address that the password request was made from and send that with the email as well)

This is the system that I have on my self-service image randomizer service (also coded with ASP; password is also 1-way encrypted). I also have a sort of limit on the # of password requests that can be made on an account before it's next login (not sure if you have that here). It wasn't too hard to code, and it's been working quite well :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.