public final boolean activateWithEmailToken ( String token ) { Sysprop s = CoreUtils . getInstance ( ) . getDao ( ) . read ( getAppid ( ) , identifier ) ; if ( isValidToken ( s , Config . _EMAIL_TOKEN , token ) ) { s . removeProperty ( Config . _EMAIL_TOKEN ) ; CoreUtils . getInstance ( ) . getDao ( ) . update ( getAppid ( ) , s ) ; setActive ( true ) ; update ( ) ; return true ; } return false ; }
Activates a user if a given token matches the one stored .