芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Http/Controllers/Api/V2/ForgotPasswordController.php
service = $service; } public function forgetPassword(ForgotPasswordRequest $request) { try { return $this->successResponse($this->service->resetCode($request->email)); } catch (ForgotPasswordException $e) { return $this->unprocessableResponse([], $e->getMessage()); } catch (Exception $e) { return $this->unprocessableResponse([], __("Failed to process the request.")); } } public function verifyResetCode(VerifyCodeRequest $request) { try { return $this->successResponse($this->service->verifyCode($request->code, $request->email)); } catch (ForgotPasswordException $e) { return $this->unprocessableResponse([], $e->getMessage()); } catch (Exception $e) { return $this->unprocessableResponse([], __("Failed to process the request.")); } } public function confirmNewPassword(NewPasswordRequest $request) { try { return $this->successResponse($this->service->confirmPassword($request->code, $request->email, $request->password)); } catch (ForgotPasswordException $e) { return $this->unprocessableResponse([], $e->getMessage()); } catch (Exception $e) { return $this->unprocessableResponse([], __("Failed to process the request.")); } } }