Changeset 843


Ignore:
Timestamp:
Aug 26, 2010, 1:17:49 PM (13 years ago)
Author:
keesvb
Message:

second fix for isUser REST method

File:
1 edited

Legend:

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

    r842 r843  
    5858        * Determines whether the given user/password combination is a valid GSCF account.
    5959        *
    60         * @return bool True when user/password is a valid GSCF account, false otherwise.
     60        * @return bool {"authenticated":true} when user/password is a valid GSCF account, {"authenticated":false} otherwise.
    6161        */
    6262        def isUser= {
     
    7070                        isUser = false
    7171                }
    72                 render isUser as JSON
     72                def reply = ['authenticated':isUser]
     73                render reply as JSON
    7374        }
    7475
Note: See TracChangeset for help on using the changeset viewer.