mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
oauth response array
This commit is contained in:
@@ -54,6 +54,9 @@ class UserResource extends JsonResource
|
||||
$out['completed_torrents_count'] = $this->completed_torrents_count;
|
||||
$out['incomplete_torrents_count'] = $this->incomplete_torrents_count;
|
||||
}
|
||||
if ($request->routeIs("oauth.user_info")) {
|
||||
$out['name'] = $this->username;
|
||||
}
|
||||
|
||||
if (nexus()->isPlatformAdmin() && $request->routeIs('users.show')) {
|
||||
$out['two_step_secret'] = $this->two_step_secret;
|
||||
|
||||
Reference in New Issue
Block a user