Skip to content

Add back the firing of UserLoggedInEvent and deprecate PostLoginEvent - #64582

Merged
come-nc merged 5 commits into
masterfrom
fix/user-loggedin-event
Sep 21, 2026
Merged

come-nc merged 5 commits into
masterfrom
fix/user-loggedin-event

Conversation

@come-nc

@come-nc come-nc commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Summary

The firing of UserLoggedInEvent was not correctly added back when the listener on postLogin dispatching it was removed.
This is because of the presence of duplicated PostLoginEvent which is confusing, so let’s deprecate that and move to the properly named event.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@come-nc come-nc added this to the Nextcloud 36 milestone Sep 20, 2026
@come-nc come-nc self-assigned this Sep 20, 2026
@come-nc
come-nc requested a review from a team as a code owner September 20, 2026 12:29
@come-nc
come-nc requested review from icewind1991 and leftybournes and removed request for a team September 20, 2026 12:29
@come-nc come-nc added the 3. to review Waiting for reviews label Sep 20, 2026
@come-nc

come-nc commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

I guess the SSO error is related but I’m not sure what’s happening 🧐

When the listening on postLogin was removed, adding the
 UserLoggedInEvent was forgotten, I guess because there is already
 PostLoginEvent, but we do need to fire both of them for now.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…s the same

UserLoggedInEvent is the correct naming, matching BeforeUserLoggedInEvent

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
And remove duplicated event firing.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
come-nc force-pushed the fix/user-loggedin-event branch from 3b4540c to 78691bf Compare September 21, 2026 10:16
@come-nc
come-nc merged commit b44aa37 into master Sep 21, 2026
181 checks passed
@come-nc
come-nc deleted the fix/user-loggedin-event branch September 21, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants