public static function verify($code)
    {
        if (!$code) {
            return null;
        }


        if ($user = self::lookupVerificationCode($code)) {
            $user->setVerificationCode();
        }

        return $user;
    }