Ignore:
Timestamp:
May 6, 2009, 3:40:07 AM (15 years ago)
Author:
gav
Message:

Logins now route through a welcome action to allow flash message and user environment setup. Session timeout now user configurable and defaults to 12 hours. Work on Planned Maintenance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/SecurityConfig.groovy

    r126 r127  
    11security {
     2
     3    def authenticateService
    24
    35        // see DefaultSecurityConfig.groovy for all settable/overridable properties
     
    4648
    4749    //We always want to go to the home page so that bookmarks are not used.
    48     defaultTargetUrl = '/appCore/home'
     50    defaultTargetUrl = '/appCore/welcome'
    4951    alwaysUseDefaultTargetUrl = true
    5052
     
    6163    cacheUsers = false
    6264
     65//    //List for and events and run the closure(s) that follow.
     66//    //Unfortunately the session is not available yet so many things can't be done here, us an defaultTargetUrl and controller.
     67//    useSecurityEventListener = true
     68//
     69//    onAuthenticationSuccessEvent = { e, appCtx ->
     70//        def p = e.source.principal
     71//        def personInstance = Person.findByLoginName(p.username)
     72//        println p.username
     73//        println personInstance.loginName
     74//        println personInstance.firstName
     75//    }
     76
    6377}
Note: See TracChangeset for help on using the changeset viewer.