checkUserLogin($name, $password); $auth = new ApiAuth(); return $auth->saveAuthInfo($user); } public function loginByVerify($name, $code) { $validator = new AccountValidator(); $user = $validator->checkVerifyLogin($name, $code); $auth = new ApiAuth(); return $auth->saveAuthInfo($user); } }