mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
disabled 2fa set up in demo mode for howdy account
This commit is contained in:
@@ -221,5 +221,14 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
// Create user directory for his files
|
||||
Storage::makeDirectory("files/$user->id");
|
||||
});
|
||||
|
||||
static::updating(function ($user) {
|
||||
|
||||
// Prevent to set 2fa in demo mode
|
||||
if (config('vuefilemanager.is_demo') && $user->email === 'howdy@hi5ve.digital') {
|
||||
$user->two_factor_secret = null;
|
||||
$user->two_factor_recovery_codes = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user