@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | Otp::where([ |
32 | - ['identifier', $identifier], |
|
33 | - ['otp_type', $otpType] |
|
32 | + [ 'identifier', $identifier ], |
|
33 | + [ 'otp_type', $otpType ] |
|
34 | 34 | ])->delete(); |
35 | 35 | |
36 | 36 | if (($digits >= 4) && ($digits <= 12)) { |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | public static function validate(string $identifier, string $token, string $otpType = null) |
65 | 65 | { |
66 | 66 | $otp = Otp::where([ |
67 | - ['identifier', $identifier], |
|
68 | - ['otp_type', $otpType] |
|
67 | + [ 'identifier', $identifier ], |
|
68 | + [ 'otp_type', $otpType ] |
|
69 | 69 | ])->first(); |
70 | 70 | |
71 | 71 | if ($otp == null) { |