System iNetwork

 System iNEWS Code

Home » March 2010 Code » Figure4.groovy
  Figure4.groovy (PC file)

 import com.sun.tools.internal.ws.processor.model.Request

class LoginFilters {
  def filters = {
    loginCheck(controller:'*', action:'*') {
      before = {
        if (params.controller == null) { 
          redirect(controller:'login', action:'login')
          return true 
        } else if(!session.user && !actionName.equals('login')) { 
          redirect(controller:'login', action:'login') 
          return false 
        } 
      }
    } 
  }
}
  
 

You are at a pentontech.com site.
If you have a question about our products or about an order you have placed,
please contact the customer service department at (800) 650-1804 or (970) 203-2914 or via e-mail.
If you have a technical question about this site, please contact the Web Master.
Terms of Use | Privacy Statement
© 2010Penton Media, Inc.