Ignore:
Timestamp:
Jan 23, 2010, 10:42:41 AM (15 years ago)
Author:
gav
Message:

Svn move PersonService to AuthService?.

File:
1 edited

Legend:

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

    r258 r291  
    66class AppCoreController extends BaseController {
    77
    8     def personService
     8    def authService
    99    def appConfigService
    1010    def createDataService
     
    2222    */
    2323    def welcome = {
    24         def personInstance = personService.currentUser
     24        def personInstance = authService.currentUser
    2525        flash.message = "Welcome, ${personInstance.firstName} ${personInstance.lastName}."
    2626
     
    4141    def changeSessionTimeout = {
    4242        if (request.method == 'GET') {
    43             def personInstance = personService.currentUser
     43            def personInstance = authService.currentUser
    4444            return [ personInstance : personInstance ]       
    4545        }
    4646        if (request.method == 'POST') {
    47             def personInstance = personService.currentUser
     47            def personInstance = authService.currentUser
    4848                personInstance.properties = params
    4949                if (!personInstance.hasErrors() && personInstance.save(flush: true)) {
     
    6767
    6868        if (request.method == 'GET') {
    69             def personInstance = personService.currentUser
     69            def personInstance = authService.currentUser
    7070            return [ personInstance : personInstance ]       
    7171        }
    7272
    7373        if (request.method == 'POST') {
    74             def personInstance = personService.currentUser
     74            def personInstance = authService.currentUser
    7575
    7676            if(params.confirmPass == params.pass) {
Note: See TracChangeset for help on using the changeset viewer.