Changeset 216 for trunk/grails-app/controllers/AppCoreController.groovy
- Timestamp:
- Dec 4, 2009, 2:05:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r185 r216 17 17 */ 18 18 def welcome = { 19 def personInstance = personService.currentUser ()19 def personInstance = personService.currentUser 20 20 flash.message = "Welcome, ${personInstance.firstName} ${personInstance.lastName}." 21 21 … … 30 30 def changeSessionTimeout = { 31 31 if (request.method == 'GET') { 32 def personInstance = personService.currentUser ()32 def personInstance = personService.currentUser 33 33 return [ personInstance : personInstance ] 34 34 } 35 35 if (request.method == 'POST') { 36 def personInstance = personService.currentUser ()36 def personInstance = personService.currentUser 37 37 personInstance.properties = params 38 38 if (!personInstance.hasErrors() && personInstance.save(flush: true)) { … … 53 53 54 54 if (request.method == 'GET') { 55 def personInstance = personService.currentUser ()55 def personInstance = personService.currentUser 56 56 return [ personInstance : personInstance ] 57 57 } 58 58 59 59 if (request.method == 'POST') { 60 def personInstance = personService.currentUser ()60 def personInstance = personService.currentUser 61 61 62 62 if(params.confirmPass == params.pass) {
Note: See TracChangeset
for help on using the changeset viewer.