Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | public function sendResetEmail(ForgotPasswordRequest $request) |
||
13 | { |
||
14 | $broker = $this->getPasswordBroker(); |
||
15 | $sendingResponse = $broker->sendResetLink($request->only('email')); |
||
16 | |||
17 | if (Password::RESET_LINK_SENT !== $sendingResponse) { |
||
18 | throw new HttpException(500); |
||
19 | } |
||
20 | |||
21 | return response()->json([ |
||
22 | 'status' => 'ok', |
||
23 | ], 200); |
||
24 | } |
||
36 |