Changeset 127 for trunk/grails-app/conf


Ignore:
Timestamp:
May 6, 2009, 3:40:07 AM (16 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.

Location:
trunk/grails-app/conf
Files:
2 edited

Legend:

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

    r125 r127  
    242242        def taskPriorityInstance
    243243
     244        taskPriorityInstance = new TaskPriority(name:"Normal")
     245        BootStrapSaveAndTest(taskPriorityInstance)
     246
    244247        taskPriorityInstance = new TaskPriority(name:"Low")
    245         BootStrapSaveAndTest(taskPriorityInstance)
    246 
    247         taskPriorityInstance = new TaskPriority(name:"Normal")
    248248        BootStrapSaveAndTest(taskPriorityInstance)
    249249
  • 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.