portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions CreateNewUserAndConfirm.java JetspeedSessionValidator.java
Date Tue, 17 Jul 2001 16:39:35 GMT
taylor      01/07/17 09:39:35

  Modified:    src/java/org/apache/jetspeed/modules/actions
                        CreateNewUserAndConfirm.java
                        JetspeedSessionValidator.java
  Log:
  - changed profile comparison for session validator
  - set new user to logged on - only when creating new users interactively (not when creating
new users from admin portlets)
  
  Revision  Changes    Path
  1.21      +1 -0      jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/CreateNewUserAndConfirm.java
  
  Index: CreateNewUserAndConfirm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/CreateNewUserAndConfirm.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- CreateNewUserAndConfirm.java	2001/07/03 17:17:14	1.20
  +++ CreateNewUserAndConfirm.java	2001/07/17 16:39:30	1.21
  @@ -179,6 +179,7 @@
                   data.setUser(user);
            
                   JetspeedSecurity.addUser(user, pass1, data);
  +                user.setHasLoggedIn(new Boolean (true));        
   
                   data.setMessage(Localization.getString("CREATENEWUSERANDCONFIRM_CREATE"));
                   if (enableMail)
  
  
  
  1.9       +3 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/JetspeedSessionValidator.java
  
  Index: JetspeedSessionValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/JetspeedSessionValidator.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JetspeedSessionValidator.java	2001/06/16 10:34:41	1.8
  +++ JetspeedSessionValidator.java	2001/07/17 16:39:31	1.9
  @@ -76,7 +76,7 @@
   @see org.apache.turbine.actions.SessionValidator
   @author <a href="mailto:ingo@raleigh.ibm.com">Ingo Schuster</a>
   @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  -@version $Id: JetspeedSessionValidator.java,v 1.8 2001/06/16 10:34:41 raphael Exp $
  +@version $Id: JetspeedSessionValidator.java,v 1.9 2001/07/17 16:39:31 taylor Exp $
   */
   public class JetspeedSessionValidator extends TemplateSessionValidator
   {
  @@ -126,8 +126,8 @@
           Profile newProfile = Profiler.getProfile(jdata);
           Profile currentProfile = jdata.getProfile();
           
  -        if (   (currentProfile == null)
  -            || (!currentProfile.getURL().equals(newProfile.getURL())) )
  +        if ((currentProfile == null)
  +         || (!currentProfile.equals(newProfile)))
           {
               // the profile changed due to the request parameters,
               // change it in the RunData
  
  
  

---------------------------------------------------------------------
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