public function validateActivationKey($email, $activationKey)
    {
        $query = $this->findByEmailAndActivationKey($email, $activationKey);

        if ($query->Count() > 0) {
            return true;
        }

        return false;
    }
public function validateActivationKey($email, $activationKey)
    {
        $query = $this->findByEmailAndActivationKey($email, $activationKey);

        if ($query->Count() > 0) {
            return true;
        }

        return false;
    }
public function validateActivationKey ( $ email , $ activationKey ) { $ query = $ this -> findByEmailAndActivationKey ( $ email , $ activationKey ) ; if ( $ query -> Count ( ) > 0 ) { return true ; } return false ; }
Checks if an user is allowed to do an action with a required activation-key

User-data: e-mailaddress

@param string $email E-mailaddress of the user.
@param string $activationKey Activation key of the user.
@return bool
Checks if an user is allowed to do an action with a required activation - key