Changeset 2232
- Timestamp:
- May 21, 2012, 12:21:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/authentication/SecUser.groovy
r2231 r2232 72 72 } 73 73 74 /** 75 * Before update 76 */ 77 def beforeUpdate = { 78 // got an api key? 79 if (!apiKey) { 80 // generate an apiKey for this user 81 apiKey = UUID.randomUUID().toString() 82 } 83 } 84 74 85 /** 75 86 * return the text representation of this user
Note: See TracChangeset
for help on using the changeset viewer.