portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sg...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions UpdateAccount.java
Date Sun, 29 Apr 2001 11:58:29 GMT
sgala       01/04/29 04:58:29

  Modified:    src/java/org/apache/jetspeed/modules/actions
                        UpdateAccount.java
  Log:
  Patch by Jay Turpin, to avoid that the user object overwrites the changes
  
  Revision  Changes    Path
  1.9       +4 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/UpdateAccount.java
  
  Index: UpdateAccount.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/UpdateAccount.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- UpdateAccount.java	2001/03/07 06:43:41	1.8
  +++ UpdateAccount.java	2001/04/29 11:58:29	1.9
  @@ -209,8 +209,11 @@
                   data.getUser().setPerm(TurbineUserPeer.FIRST_NAME, firstname);
                   data.getUser().setPerm(TurbineUserPeer.LAST_NAME, lastname);
                   data.getUser().setPerm(TurbineUserPeer.EMAIL, email);
  -                if ( changepass ) 
  +                if ( changepass ) {
                       data.getUser().setPerm(TurbineUserPeer.PASSWORD, password);
  +                    // Save to TurbineUser object as well (fix by Jay Turpin)
  +                    data.getUser().setPassword(password);
  +                }
   
                   data.setMessage (Localization.getString("UPDATEACCOUNT_DONE"));
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message