Skip to content

Commit 9aa2380

Browse files
committed
Code Quality - Removed unused parameters while defining ExplicitValidator
1 parent 605db84 commit 9aa2380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AuthenticatesUsersWith2FA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function verifyToken(Request $request)
5858
];
5959

6060
// Impllicitly adding an validation rule to check if token is valid or not.
61-
Validator::extendImplicit('valid_token', function ($attribute, $value, $parameters, $validator) {
61+
Validator::extendImplicit('valid_token', function ($attribute, $value) {
6262
$totp = new TOTP(
6363
config('2fa-config.account_name'),
6464
$this->user->secret_key

0 commit comments

Comments
 (0)