Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-10-2012, 07:35 AM   PM User | #1
pritam2
New to the CF scene

 
Join Date: May 2012
Location: Kolkata
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
pritam2 is an unknown quantity at this point
forgot password page

i want to make forget password page using jsp where when the user will enter his/her email-id one mail will be forwarded to that mail-id with login details. I can't understand how to do it..please help me out..
pritam2 is offline   Reply With Quote
Old 05-10-2012, 12:34 PM   PM User | #2
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
in the database the table would have a layout something like....
[UserName][Password][Email][fName][lName]

on login you would validate password against userid... you would need to store a variable somewhere- either a cookie, or pass it back, or something- there are countless solutions...
once that user has maxed out the attempts, or clicks the 'I Forgot' button you will simply ask for their username, validate that that user exists, something like (select [Email] from tbl_Users where [UserName] = @param) and then use something like this (google java email) to send an email to that person with whatever details you want.
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:31 AM.


Advertisement
Log in to turn off these ads.