Changeset 2222 for trunk/grails-app/services
- Timestamp:
- Apr 25, 2012, 12:10:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/api/ApiService.groovy
r2217 r2222 70 70 */ 71 71 def validateRequest(String deviceID, String validation) { 72 def validated = false 73 72 74 // disable validation check on development and ci 73 75 if (['development', 'ci'].contains(grails.util.GrailsUtil.environment)) { … … 88 90 89 91 // check if the validation confirms 90 return (validation == validationSum) 91 } else { 92 // no such token, re-authenticate 93 return false 94 } 92 validated = (validation == validationSum) 93 } 94 95 return validated 95 96 } 96 97
Note: See TracChangeset
for help on using the changeset viewer.