users page refactor part 2

This commit is contained in:
Čarodej
2021-11-22 15:54:25 +01:00
parent 9cece789a0
commit d798f06d36
6 changed files with 322 additions and 427 deletions

View File

@@ -20,6 +20,7 @@ class UserResource extends JsonResource
'id' => $this->id,
'type' => 'user',
'attributes' => [
'avatar' => $this->settings->avatar,
'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
'role' => $this->role,
'two_factor_authentication' => $this->two_factor_secret ? true : false,