Results 1 to 3 of 3
  1. #1
    dmane is offline Member
    Join Date
    Mar 2010
    Rep Power

    Question How to detect first time login to the web application


    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?

  2. #2
    aparna_18 is offline Member
    Join Date
    Aug 2010
    Rep Power


    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.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    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

  1. Login window before application startup
    By Gloomy in forum AWT / Swing
    Replies: 5
    Last Post: 07-19-2010, 09:22 PM
  2. Replies: 4
    Last Post: 03-12-2010, 05:57 PM
  3. Single login for a user at a time
    By mitali l joshi in forum Java Servlet
    Replies: 4
    Last Post: 01-22-2010, 10:23 AM
  4. How to write the login application using cookies
    By lukky in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-19-2008, 06:06 PM
  5. Replies: 0
    Last Post: 06-25-2008, 12:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts