public function resetUpdate($token)
    {
        $user = new User();
        if ($token === 'NULL' || $user->isResetToken($token) !== true) {
            Error::set(__printl('auth:error:token'), 'token');
        }
        if ($this->fail() !== true) {
            Success::set(true);
        }
    }
public function resetUpdate($token)
    {
        $user = new User();
        if ($token === 'NULL' || $user->isResetToken($token) !== true) {
            Error::set(__printl('auth:error:token'), 'token');
        }
        if ($this->fail() !== true) {
            Success::set(true);
        }
    }
public function resetUpdate ( $ token ) { $ user = new User ( ) ; if ( $ token === 'NULL' || $ user -> isResetToken ( $ token ) !== true ) { Error :: set ( __printl ( 'auth:error:token' ) , 'token' ) ; } if ( $ this -> fail ( ) !== true ) { Success :: set ( true ) ; } }
check token is exists or not.

@param (mixed) $token token of user

@since 2.0.3

@return void
check token is exists or not .