1 | <?php |
||
22 | class OtpController |
||
23 | { |
||
24 | /** |
||
25 | * * Show the form for the otp submission. |
||
26 | * |
||
27 | * @param Request $request |
||
28 | * |
||
29 | * @return RedirectResponse|View |
||
30 | */ |
||
31 | public function create(Request $request) |
||
39 | |||
40 | /** |
||
41 | * Store the otp in cookies and redirect user |
||
42 | * to their original path. |
||
43 | * |
||
44 | * @param Request $request |
||
45 | * |
||
46 | * @return RedirectResponse |
||
47 | */ |
||
48 | public function store(Request $request): RedirectResponse |
||
89 | |||
90 | /** |
||
91 | * Validate the given otp submission request. |
||
92 | * |
||
93 | * @param Request $request |
||
94 | * |
||
95 | * @return ValidatorInterface |
||
96 | */ |
||
97 | private function getOtpSubmissionRequestValidator(Request $request): ValidatorInterface |
||
103 | |||
104 | /** |
||
105 | * Retrieve a token by the given user and password. |
||
106 | * |
||
107 | * @param Authenticatable $user |
||
108 | * @param string $password |
||
109 | * |
||
110 | * @return mixed |
||
111 | */ |
||
112 | private function retrieveOtpTokenByPlainText(Authenticatable $user, string $password): ?TokenInterface |
||
116 | |||
117 | /** |
||
118 | * Determine if an otp requested or not. |
||
119 | * |
||
120 | * @return mixed |
||
121 | */ |
||
122 | private function otpHasBeenRequested() |
||
126 | } |
||
127 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.