mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add logging to be able to debug FirstLoginListener
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
4f2048851c
commit
6e38cb197a
1 changed files with 21 additions and 0 deletions
|
|
@ -76,11 +76,25 @@ class FirstLoginListener implements IEventListener {
|
|||
}
|
||||
|
||||
public function onAssignedId(string $username): void {
|
||||
$this->logger->info(
|
||||
__CLASS__ . ' – {user} assignedId',
|
||||
[
|
||||
'app' => 'user_ldap',
|
||||
'user' => $username,
|
||||
]
|
||||
);
|
||||
$this->eventHappened[$username]['id'] = 1;
|
||||
$this->triggerUpdateGroups($username);
|
||||
}
|
||||
|
||||
public function onPostLogin(string $username): void {
|
||||
$this->logger->info(
|
||||
__CLASS__ . ' – {user} postLogin',
|
||||
[
|
||||
'app' => 'user_ldap',
|
||||
'user' => $username,
|
||||
]
|
||||
);
|
||||
$this->eventHappened[$username]['login'] = 1;
|
||||
$this->triggerUpdateGroups($username);
|
||||
}
|
||||
|
|
@ -92,6 +106,13 @@ class FirstLoginListener implements IEventListener {
|
|||
}
|
||||
|
||||
private function updateGroups(string $username): void {
|
||||
$this->logger->info(
|
||||
__CLASS__ . ' – {user} updateGroups',
|
||||
[
|
||||
'app' => 'user_ldap',
|
||||
'user' => $username,
|
||||
]
|
||||
);
|
||||
$groups = $this->groupBackend->getUserGroups($username);
|
||||
|
||||
$qb = $this->dbc->getQueryBuilder();
|
||||
|
|
|
|||
Loading…
Reference in a new issue