Changeset 185 for trunk/grails-app/controllers/AppCoreController.groovy
- Timestamp:
- Nov 10, 2009, 9:56:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r178 r185 3 3 class AppCoreController extends BaseController { 4 4 5 def authenticateService5 def personService 6 6 def createDataService 7 7 … … 17 17 */ 18 18 def welcome = { 19 def personInstance = Person.get(authenticateService.userDomain().id)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 = Person.get(authenticateService.userDomain().id)32 def personInstance = personService.currentUser() 33 33 return [ personInstance : personInstance ] 34 34 } 35 35 if (request.method == 'POST') { 36 def personInstance = Person.get(authenticateService.userDomain().id)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 = Person.get(authenticateService.userDomain().id)55 def personInstance = personService.currentUser() 56 56 return [ personInstance : personInstance ] 57 57 } 58 58 59 59 if (request.method == 'POST') { 60 def personInstance = Person.get(authenticateService.userDomain().id)60 def personInstance = personService.currentUser() 61 61 62 62 if(params.confirmPass == params.pass) {
Note: See TracChangeset
for help on using the changeset viewer.