antonio     2003/11/23 19:42:44

  Modified:    
src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/flow/javascript
                        auth.js
  Log:
  Fixing typo
  
  Revision  Changes    Path
  1.7       +3 -5      
cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/flow/javascript/auth.js
  
  Index: auth.js
  ===================================================================
  RCS file: 
/home/cvs//cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/flow/javascript/auth.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- auth.js   16 Nov 2003 00:28:40 -0000      1.6
  +++ auth.js   24 Nov 2003 03:42:44 -0000      1.7
  @@ -108,7 +108,7 @@
   
   function auth_logout(handler, modeString) {
       var mode;
  -    if ( modeString == null | modeString == "" || modeString == 
"if-not-authenticated" ) {
  +    if ( modeString == null || modeString == "" || modeString == 
"if-not-authenticated" ) {
           mode = 
Packages.org.apache.cocoon.webapps.authentication.AuthenticationConstants.LOGOUT_MODE_IF_NOT_AUTHENTICATED;
       } else if ( modeString == "if-unused" ) {
           mode = 
Packages.org.apache.cocoon.webapps.authentication.AuthenticationConstants.LOGOUT_MODE_IF_UNUSED;
  @@ -117,17 +117,15 @@
       } else {
          throw new Error("Unknown mode"); // " + modeString);
       }
  -
       var authMgr = null;
       try {
           authMgr = 
cocoon.getComponent(Packages.org.apache.cocoon.webapps.authentication.AuthenticationManager.ROLE);
           var state = authMgr.getState();
   
  -        if (handler == null && state!=null) {
  +        if (handler == null && state != null) {
               handler = state.getHandlerName();
           }
  -
  -        if ( null == handler )
  +        if (handler == null)
               throw new Error("LogoutAction requires at least the handler 
parameter.");
           authMgr.logout( handler, mode );
       } finally {
  
  
  

Reply via email to