Changeset 2231
- Timestamp:
- May 21, 2012, 11:58:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/authentication/SecUser.groovy
r2230 r2231 72 72 } 73 73 74 /**75 * Make sure every user has an api key76 */77 def onLoad = {78 // make sure a user has an api key79 if (!apiKey) {80 // generate an apiKey for this user81 apiKey = UUID.randomUUID().toString()82 83 // save ourselves84 this.save()85 }86 }87 88 74 /** 89 75 * return the text representation of this user
Note: See TracChangeset
for help on using the changeset viewer.