This commit is contained in:
Čarodej
2022-03-29 12:29:32 +02:00
parent af3f08e728
commit b0829c71e9
19 changed files with 51 additions and 52 deletions

View File

@@ -223,7 +223,6 @@ class User extends Authenticatable implements MustVerifyEmail
});
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;