Changeset 291 for trunk/grails-app/controllers/AppCoreController.groovy
- Timestamp:
- Jan 23, 2010, 10:42:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r258 r291 6 6 class AppCoreController extends BaseController { 7 7 8 def personService8 def authService 9 9 def appConfigService 10 10 def createDataService … … 22 22 */ 23 23 def welcome = { 24 def personInstance = personService.currentUser24 def personInstance = authService.currentUser 25 25 flash.message = "Welcome, ${personInstance.firstName} ${personInstance.lastName}." 26 26 … … 41 41 def changeSessionTimeout = { 42 42 if (request.method == 'GET') { 43 def personInstance = personService.currentUser43 def personInstance = authService.currentUser 44 44 return [ personInstance : personInstance ] 45 45 } 46 46 if (request.method == 'POST') { 47 def personInstance = personService.currentUser47 def personInstance = authService.currentUser 48 48 personInstance.properties = params 49 49 if (!personInstance.hasErrors() && personInstance.save(flush: true)) { … … 67 67 68 68 if (request.method == 'GET') { 69 def personInstance = personService.currentUser69 def personInstance = authService.currentUser 70 70 return [ personInstance : personInstance ] 71 71 } 72 72 73 73 if (request.method == 'POST') { 74 def personInstance = personService.currentUser74 def personInstance = authService.currentUser 75 75 76 76 if(params.confirmPass == params.pass) {
Note: See TracChangeset
for help on using the changeset viewer.