public String generateEmailConfirmationToken ( ) { if ( StringUtils . isBlank ( identifier ) ) { return "" ; } Sysprop s = CoreUtils . getInstance ( ) . getDao ( ) . read ( getAppid ( ) , identifier ) ; if ( s != null ) { String token = Utils . base64encURL ( Utils . generateSecurityToken ( ) . getBytes ( ) ) ; s . addProperty ( Config . _EMAIL_TOKEN , token ) ; CoreUtils . getInstance ( ) . getDao ( ) . update ( getAppid ( ) , s ) ; return token ; } return "" ; }
Generates a new email confirmation token . Sent via email for user activation .