Skip to content

Commit d997b77

Browse files
authored
Update Auth.php
1 parent e5ba7c7 commit d997b77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Auth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Auth
1111
public static string $totpSecretField = 'totp_secret';
1212

1313
/** @return array<string,array<string|mixed>> */
14-
public static function login(string $username, string $password, string $totp = null): array
14+
public static function login(string $username, string $password, string $totp = ''): array
1515
{
1616
$query = sprintf(
1717
'select * from `%s` where `%s` = ? limit 1',
@@ -87,3 +87,4 @@ public static function exists(string $username): bool
8787
return boolval(DB::selectValue($query, $username));
8888
}
8989
}
90+

0 commit comments

Comments
 (0)