Results 1 to 3 of 3
- 08-02-2010, 01:08 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 1
- Rep Power
- 0
How to detect first time login to the web application
Hi,
I have developed a web application using struts 2 framework . I want to generate a password automatically on first time log in to the application and send a notification mail with new password and a link to change that password. How to detect the first time log in of the user?
- 08-04-2010, 01:35 PM #2
Member
- Join Date
- Aug 2010
- Posts
- 1
- Rep Power
- 0
Hi,
If u use the emailaddress as username which is unique, so that u can check in the database immediately by lossing the focus from the textfield and write a logic as if not exists , you need to generate password,send it to the entered email and update the database.
- 08-04-2010, 06:18 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Normally in most of the cases, initial logins are logged separately in a database. And that information use in future. Based on the you can build different logic.
For example, think you've a user table and you've maintain a status there to identify the initial login. From that initial login what you are really doing it sent a mail with the confirmation URL, and on top of that url you can update the status. Normally you're not given a password to the user, he/she could use a one and you keep it as the login password to your application.
Similar Threads
-
Login window before application startup
By Gloomy in forum AWT / SwingReplies: 5Last Post: 07-19-2010, 09:22 PM -
Passing screen resolution parameters at the launch time of the application!
By Y. Progammer in forum New To JavaReplies: 4Last Post: 03-12-2010, 05:57 PM -
Single login for a user at a time
By mitali l joshi in forum Java ServletReplies: 4Last Post: 01-22-2010, 10:23 AM -
How to write the login application using cookies
By lukky in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-19-2008, 06:06 PM -
cannot open database requested in login. Login fails
By banduskank in forum JDBCReplies: 0Last Post: 06-25-2008, 12:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks