Skip to content

Use stored user for PasswordUpdatedEvent - #32016

Merged
artonge merged 1 commit into
masterfrom
fix/PasswordUpdatedEvent_handling
May 16, 2022
Merged

Use stored user for PasswordUpdatedEvent#32016
artonge merged 1 commit into
masterfrom
fix/PasswordUpdatedEvent_handling

Conversation

@artonge

Copy link
Copy Markdown
Collaborator

When handling PasswordUpdatedEvent event, we are calling getLoginName which does not exist.

This PR adds a condition to use the previously stored user when handling PasswordUpdatedEvent.

@artongeartonge added this to the Nextcloud 25 milestone Apr 19, 2022
@artonge
artonge requested review from a team and nickvergessenApril 19, 2022 13:58
@artongeartonge self-assigned this Apr 19, 2022
@artonge
artonge requested review from CarlSchwan, icewind1991 and vanpertsch and removed request for a teamApril 19, 2022 13:58
@artonge
artongeforce-pushed the fix/PasswordUpdatedEvent_handling branch 2 times, most recently from 3268622 to ad22d14CompareApril 20, 2022 12:03
@artongeartonge changed the title Use stored user for PasswordUpdatedEventUse stored user for PasswordUpdatedEventApr 26, 2022
@artongeartonge added the 3. to review Waiting for reviews label Apr 28, 2022
Comment threadapps/files_external/lib/Listener/StorePasswordListener.php Outdated
@artonge
artongeforce-pushed the fix/PasswordUpdatedEvent_handling branch 3 times, most recently from 627f950 to 8517bb2CompareApril 28, 2022 15:31
@artonge

Copy link
Copy Markdown
CollaboratorAuthor

/rebase

@artongeartonge closed this May 3, 2022
@artonge
artongeforce-pushed the fix/PasswordUpdatedEvent_handling branch from 8517bb2 to 290697bCompareMay 3, 2022 16:06
@artongeartonge reopened this May 3, 2022
@artonge
artongeforce-pushed the fix/PasswordUpdatedEvent_handling branch 3 times, most recently from 2b9d29f to 498681cCompareMay 10, 2022 09:20
When handling PasswordUpdatedEvent event, we are calling getLoginName which does not exists.
This PR adds a condition to use the previously stored user when handling PasswordUpdatedEvent.
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge
artongeforce-pushed the fix/PasswordUpdatedEvent_handling branch from 498681c to 816e782CompareMay 10, 2022 10:16
@artonge

Copy link
Copy Markdown
CollaboratorAuthor

CI failure unrelated, samba is always failing https://github.com/nextcloud/server/actions/workflows/smb-kerberos.yml

@artonge
artonge requested a review from a teamMay 10, 2022 11:19
@artonge

Copy link
Copy Markdown
CollaboratorAuthor

Review ping :)

@artonge
artonge merged commit 259b280 into masterMay 16, 2022
@artonge
artonge deleted the fix/PasswordUpdatedEvent_handling branch May 16, 2022 10:38
@blizzz

Copy link
Copy Markdown
Member

/backport to stable24

@blizzz

Copy link
Copy Markdown
Member

/backport to stable23

@blizzz

Copy link
Copy Markdown
Member

/backport to stable22

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@artonge@blizzz@nickvergessen@CarlSchwan@come-nc@skjnldsv