• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

how to set password and encoded password

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
Here Is my code:

if(resetPwd=true){
theForm.setResetPassword(true);
user.setPassword(theForm.getPassword());
user.setPassword(theForm.getRepassword());
}
if(resetPwd=false){
theForm.setResetPassword(false);
user.setEncodedPassword(Integer.parseInt(theForm.getPassword()));
user.setEncodedPassword(Integer.parseInt(theForm.getRepassword()));

I have edit user option and in that i can edit my password also and can set new password.So in save user i am using both setpassword();and setEncodedPassword();.
If user did not change password then it should be setencoded password but in my case it is not exixuting and always it will set new password for the same user when i edit.because resetpassword is always true.
please help me to resolve this issue.what wrong in my code please let me know.
thanks in advance.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic