mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
admin(ui): actually get avatar for users
This commit is contained in:
@@ -43,9 +43,11 @@ class UserTransformer extends BaseTransformer
|
||||
'language' => $model->language,
|
||||
'root_admin' => (bool) $model->root_admin,
|
||||
'2fa' => (bool) $model->use_totp,
|
||||
'role_name' => $model->root_admin ? 'Super Administrator' : 'None',
|
||||
'avatar_url' => 'https://www.gravatar.com/avatar/' . md5($model->email) . '.jpg?s=40',
|
||||
'role_name' => $model->root_admin ? 'Super Administrator' : null,
|
||||
'created_at' => $this->formatTimestamp($model->created_at),
|
||||
'updated_at' => $this->formatTimestamp($model->updated_at),
|
||||
'avatar'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user