aspose file tools*
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
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 ?