1 | <?php |
||
18 | class ForgotPasswordController extends Controller implements ResponseCodesInterface |
||
19 | { |
||
20 | /* |
||
21 | |-------------------------------------------------------------------------- |
||
22 | | Password Reset Controller |
||
23 | |-------------------------------------------------------------------------- |
||
24 | | |
||
25 | | This controller is responsible for handling password reset emails and |
||
26 | | includes a trait which assists in sending these notifications from |
||
27 | | your application to your users. Feel free to explore this trait. |
||
28 | | |
||
29 | */ |
||
30 | |||
31 | use SendsPasswordResetEmails, JsonApiResponseHelper; |
||
32 | |||
33 | /** |
||
34 | * ForgotPasswordController constructor. |
||
35 | */ |
||
36 | public function __construct() |
||
40 | |||
41 | /** |
||
42 | * @SWG\Post(path="/password/forgot", |
||
43 | * tags={"User actions"}, |
||
44 | * summary="Perform user password forgot", |
||
45 | * description="forgot user password", |
||
46 | * produces={"application/json"}, |
||
47 | * consumes={"application/json"}, |
||
48 | * @SWG\Parameter( |
||
49 | * in="body", |
||
50 | * name="forgot password object", |
||
51 | * description="JSON Object which forgot user password", |
||
52 | * required=true, |
||
53 | * @SWG\Schema( |
||
54 | * type="object", |
||
55 | * @SWG\Property(property="email", type="string", example="[email protected]") |
||
56 | * ) |
||
57 | * ), |
||
58 | * @SWG\Response(response="200", description="Return message") |
||
59 | * ) |
||
60 | * |
||
61 | * @param PasswordService $passwordService |
||
62 | * @param Request $request |
||
63 | * |
||
64 | * @return JsonResponse |
||
65 | */ |
||
66 | public function sendResetLinkEmail(PasswordService $passwordService, Request $request) |
||
91 | |||
92 | /** |
||
93 | * @param array $data |
||
94 | * @return \Illuminate\Validation\Validator |
||
95 | */ |
||
96 | protected function validateRequest(array $data) |
||
106 | } |
||
107 |