mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
occ: Revert all changes to Info.php
Signed-off-by: Jore <contact@jore.cc>
This commit is contained in:
parent
96638fd6b2
commit
5ec3a7fcef
1 changed files with 1 additions and 10 deletions
|
|
@ -46,15 +46,7 @@ class Info extends Base {
|
|||
$output->writeln('<error>user not found</error>');
|
||||
return 1;
|
||||
}
|
||||
|
||||
$groups = $this->groupManager->getUserGroupIds($user);
|
||||
|
||||
if ($user->getLastLogin() == 0) {
|
||||
$lastseen = "never";
|
||||
} else {
|
||||
$lastseen = date('Y-m-d H:i:s T', $user->getLastLogin());
|
||||
}
|
||||
|
||||
$data = [
|
||||
'user_id' => $user->getUID(),
|
||||
'display_name' => $user->getDisplayName(),
|
||||
|
|
@ -64,11 +56,10 @@ class Info extends Base {
|
|||
'groups' => $groups,
|
||||
'quota' => $user->getQuota(),
|
||||
'storage' => $this->getStorageInfo($user),
|
||||
'last_seen' => $lastseen,
|
||||
'last_seen' => date(\DateTimeInterface::ATOM, $user->getLastLogin()), // ISO-8601
|
||||
'user_directory' => $user->getHome(),
|
||||
'backend' => $user->getBackendClassName()
|
||||
];
|
||||
|
||||
$this->writeArrayInOutputFormat($input, $output, $data);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue