Changeset 1144 for trunk/grails-app/domain
- Timestamp:
- Nov 16, 2010, 2:57:22 PM (10 years ago)
- Location:
- trunk/grails-app/domain/dbnp/authentication
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/authentication/RegistrationCode.groovy
r985 r1144 19 19 */ 20 20 class RegistrationCode { 21 22 String username 21 int userId 23 22 String token = UUID.randomUUID().toString().replaceAll('-', '') 24 23 Date dateCreated 24 Date expiryDate 25 25 26 26 static mapping = { 27 27 version false 28 28 } 29 30 public static boolean deleteByUser( SecUser user ) { 31 RegistrationCode.findByUserId(user.id)*.delete(); 32 return true; 33 } 29 34 } -
trunk/grails-app/domain/dbnp/authentication/SecUser.groovy
r976 r1144 6 6 String password 7 7 String email 8 Date dateCreated 8 9 boolean enabled 9 10 boolean accountExpired
Note: See TracChangeset
for help on using the changeset viewer.