Ignore:
Timestamp:
Nov 16, 2010, 2:57:22 PM (10 years ago)
Author:
robert@…
Message:

Added an expiry date to the confirmation email for the user and administrator. See ticket #189

Location:
trunk/grails-app/domain/dbnp/authentication
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/authentication/RegistrationCode.groovy

    r985 r1144  
    1919 */
    2020class RegistrationCode {
    21 
    22         String username
     21        int userId
    2322        String token = UUID.randomUUID().toString().replaceAll('-', '')
    2423        Date dateCreated
     24        Date expiryDate
    2525
    2626        static mapping = {
    2727                version false
    2828        }
     29
     30        public static boolean deleteByUser( SecUser user ) {
     31                RegistrationCode.findByUserId(user.id)*.delete();
     32                return true;
     33        }
    2934}
  • trunk/grails-app/domain/dbnp/authentication/SecUser.groovy

    r976 r1144  
    66        String password
    77        String email
     8        Date dateCreated
    89        boolean enabled
    910        boolean accountExpired
Note: See TracChangeset for help on using the changeset viewer.