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