mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
build
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -36,8 +36,8 @@ class UserResource extends JsonResource
|
||||
'avatar' => $this->settings->avatar,
|
||||
'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
|
||||
'role' => $this->role,
|
||||
'two_factor_authentication' => (bool)$this->two_factor_secret,
|
||||
'socialite_account' => !(bool)$this->password,
|
||||
'two_factor_authentication' => (bool) $this->two_factor_secret,
|
||||
'socialite_account' => ! (bool) $this->password,
|
||||
'storage' => $this->storage,
|
||||
'created_at' => format_date($this->created_at, 'd. M. Y'),
|
||||
'updated_at' => format_date($this->updated_at, 'd. M. Y'),
|
||||
|
||||
Reference in New Issue
Block a user