在环境文件中增加谷歌验证器开关
This commit is contained in:
@@ -20,6 +20,11 @@ class AdminTotp
|
||||
|
||||
private static ?TwoFactorAuth $tfa = null;
|
||||
|
||||
public static function isEnabled(): bool
|
||||
{
|
||||
return (bool) config('buildadmin.admin_totp_enable', true);
|
||||
}
|
||||
|
||||
private static function tfa(): TwoFactorAuth
|
||||
{
|
||||
if (self::$tfa === null) {
|
||||
|
||||
Reference in New Issue
Block a user