Ignore:
Timestamp:
Sep 28, 2009, 10:01:43 AM (15 years ago)
Author:
gav
Message:

Install Navigation plugin, work on navigation and hopefully fixed a few more IE vs Firefox CSS issues.
New skin for class-diagram plugin.
Adjust security config to suite.
Replace home.gsp with start.gsp, remove options.gsp and acknowledgements.gsp as they are now on start.gsp tabs.
Create search pages for Tasks, Assets and Inventory.
Change suggested login to manager.
Change all date formats to format="EEE, dd-MMM-yyyy".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AppCoreController.groovy

    r134 r139  
    55    def authenticateService
    66
    7     def index = { redirect(action:home,params:params) }
     7    def index = { redirect(action:start,params:params) }
    88
    99    // the delete, save and update actions only accept POST requests
    1010    //def allowedMethods = [delete:'POST', save:'POST', update:'POST']
    1111
     12    /**
     13    * This is where we arrive after login.
     14    *  Attach the welcome flash message and redirect to where ever we want the user to start.
     15    * e.g. redirect(controller:"taskDetailed", action:"search")
     16    */
    1217    def welcome = {
    1318        def personInstance = Person.get(authenticateService.userDomain().id)
     
    1621        def sess = getSession()
    1722        sess.setMaxInactiveInterval(personInstance.sessionTimeout)
    18         redirect(action:home)
     23        redirect(action:start)
    1924    }
    2025
    21     def home = {
    22     }
    23 
    24     def options = {
    25     }
    26 
    27     def acknowledgements = {
     26    def start = {
    2827    }
    2928
     
    3534        if (request.method == 'POST') {
    3635            def personInstance = Person.get(authenticateService.userDomain().id)
    37 //             personInstance.sessionTimeout = params.sessionTimeout.toInteger()
    3836                personInstance.properties = params
    3937                if (!personInstance.hasErrors() && personInstance.save()) {
     
    4139                    sess.setMaxInactiveInterval(personInstance.sessionTimeout)
    4240                    flash.message = "Session timeout changed."
    43                     redirect(action:options)
     41                    redirect(action:start)
    4442                }
    4543                else {
     
    6866                    //userCache.removeUserFromCache(personInstance.loginName)
    6967                    flash.message = "Password changed successfully."
    70                     redirect(action:options)
     68                    redirect(action:start)
    7169                }
    7270                else {
Note: See TracChangeset for help on using the changeset viewer.