request->getPost(); $accountValidator = new AccountValidator(); $account = $accountValidator->checkAccount($post['phone']); $accountValidator->checkPassword($post['new_password']); $verifyValidator = new VerifyValidator(); $verifyValidator->checkSmsCode($post['phone'], $post['verify_code']); $account->password = $post['new_password']; $account->update(); return $account; } }