Skip to content

fixes the throttler not checking the user state on postLogin - #20299

Merged
rullzer merged 1 commit into
masterfrom
fix/noid/member-on-null-app-cancel-login
Apr 8, 2020
Merged

fixes the throttler not checking the user state on postLogin#20299
rullzer merged 1 commit into
masterfrom
fix/noid/member-on-null-app-cancel-login

Conversation

@blizzz

Copy link
Copy Markdown
Member

A listener to the post login events can still reject a login, so that a user is not necessarily available at the time. \OC\User\Session::completeLogin() checks for it after the events have been sent itself and throws a LoginException.

In general this is already very hackish. Perhaps best is when any listener would throw an LoginException directly, but it is private, and also it appears that the designated way of doing things was this. As I don't know what else might cling to this behaviour or not, fixing the listener seems safest for now. Not eager for surprises at the moment.

a listener to the post login events can still reject a login, so that a
user is not necessarily available at the time.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzzblizzz added bug 3. to review Waiting for reviews labels Apr 3, 2020
@blizzzblizzz added this to the Nextcloud 19 milestone Apr 3, 2020
@rullzerrullzer mentioned this pull request Apr 4, 2020
80 tasks
@blizzz
blizzz requested a review from skjnldsvApril 8, 2020 10:09

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense!

@rullzer
rullzer merged commit 4e0ba3e into masterApr 8, 2020
@rullzer
rullzer deleted the fix/noid/member-on-null-app-cancel-login branch April 8, 2020 12:50
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@blizzz@ChristophWurst@skjnldsv@rullzer