This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes How to force user to Change Password when first time login using Java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to force user to Change Password when first time login using Java ?" Watch "How to force user to Change Password when first time login using Java ?" New topic
Author

How to force user to Change Password when first time login using Java ?

Hozaifa Azmi
Greenhorn

Joined: Jan 03, 2009
Posts: 22
Hi all...

let me know how to force user to Change Password when first time login using Java ?

Thank you in advance,
H.N.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
How are you planning to do it? Whats your understanding? We might be able to help you. Moreover, why it is related to JSF? Give us some hints, we would try to provide you some good suggestions.
Hozaifa Azmi
Greenhorn

Joined: Jan 03, 2009
Posts: 22
Hi...

yes, you are right, I am woking with JSF.

I will add a new column "password_status" in the database;
this attribute will be set to true by default;
On logging, i will also check for this attribute besides userid & password;

I will write one method in managed bean which will test for both userid,password & password_status;
based on the method outcome, proper page will be displayed.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
That sounds great. The only thing I would like to suggest is a proper name. May be PASSWORD_CHANGED=0, or DEFAULT_PASSWORD=1, in either case the user must be forced to change the password.

Where 0 = false, and 1 = true.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to force user to Change Password when first time login using Java ?
 
Similar Threads
Needed a small logic regarding logging into an application with out database.
Regarding random password generation
Network Adapter Problem
how to create an intranet(private) site in jsp?
Web email