1 | <?php |
||
18 | class ResetPasswordController extends Controller implements ResponseCodesInterface |
||
19 | { |
||
20 | use ResetsPasswords, JsonApiResponseHelper; |
||
21 | |||
22 | /** |
||
23 | * ResetPasswordController constructor. |
||
24 | */ |
||
25 | public function __construct() |
||
29 | |||
30 | /** |
||
31 | * @SWG\Post(path="/password/reset", |
||
32 | * tags={"User actions"}, |
||
33 | * summary="Perform user password reset", |
||
34 | * description="reset user password", |
||
35 | * produces={"application/json"}, |
||
36 | * consumes={"application/json"}, |
||
37 | * @SWG\Parameter( |
||
38 | * in="body", |
||
39 | * name="reset password", |
||
40 | * description="JSON Object which reset user password", |
||
41 | * required=true, |
||
42 | * @SWG\Schema( |
||
43 | * type="object", |
||
44 | * @SWG\Property(property="email", type="string", example="[email protected]"), |
||
45 | * @SWG\Property(property="password", type="string", example="87654321"), |
||
46 | * @SWG\Property(property="password_confirmation", type="string", example="87654321"), |
||
47 | * @SWG\Property(property="token", type="string", example="87654321") |
||
48 | * ) |
||
49 | * ), |
||
50 | * @SWG\Response(response="200", description="Return message") |
||
51 | * ) |
||
52 | */ |
||
53 | |||
54 | public function reset(Request $request) |
||
77 | |||
78 | /** |
||
79 | * @param array $data |
||
80 | * @return \Illuminate\Validation\Validator |
||
81 | */ |
||
82 | protected function validateRequest(array $data) |
||
96 | } |
||
97 |