We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5ba7c7 commit d997b77Copy full SHA for d997b77
src/Auth.php
@@ -11,7 +11,7 @@ class Auth
11
public static string $totpSecretField = 'totp_secret';
12
13
/** @return array<string,array<string|mixed>> */
14
- public static function login(string $username, string $password, string $totp = null): array
+ public static function login(string $username, string $password, string $totp = ''): array
15
{
16
$query = sprintf(
17
'select * from `%s` where `%s` = ? limit 1',
@@ -87,3 +87,4 @@ public static function exists(string $username): bool
87
return boolval(DB::selectValue($query, $username));
88
}
89
90
+
0 commit comments