public final String generatePasswordResetToken ( ) { if ( StringUtils . isBlank ( identifier ) ) { return "" ; } Sysprop s = CoreUtils . getInstance ( ) . getDao ( ) . read ( getAppid ( ) , identifier ) ; if ( s != null ) { String token = Utils . generateSecurityToken ( 42 , true ) ; s . addProperty ( Config . _RESET_TOKEN , token ) ; CoreUtils . getInstance ( ) . getDao ( ) . update ( getAppid ( ) , s ) ; return token ; } return "" ; }
Generates a new password reset token . Sent via email for pass reset .