Create TwoFactorAuthentication Popup

This commit is contained in:
Milos Holba
2021-06-30 13:37:44 +02:00
parent 14eaf6da4e
commit 16eb105f03
9 changed files with 324 additions and 47 deletions

View File

@@ -25,6 +25,7 @@ class UserResource extends JsonResource
'stripe_customer' => is_null($this->stripe_id) ? false : true,
'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
'role' => $this->role,
'two_factor_authentication' => $this->two_factor_secret ? true : false,
'folders' => $this->folder_tree,
'storage' => $this->storage,
'created_at_formatted' => format_date($this->created_at, '%d. %B. %Y'),