Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Fix Account Security page if auth provider removed#47092

Merged
pjlast merged 3 commits into
mainfrom
pjlast/account-security-page-missing-provider
Jan 30, 2023
Merged

Fix Account Security page if auth provider removed#47092
pjlast merged 3 commits into
mainfrom
pjlast/account-security-page-missing-provider

Conversation

@pjlast

@pjlast pjlast commented Jan 30, 2023

Copy link
Copy Markdown
Contributor

Currently, if an auth provider option gets removed while a user still has an account for that auth provider, the Account security page will break:

Screenshot 2023-01-30 at 12 49 46

This PR adjusts this behaviour so that the resolver instead returns null for the account data, and it is accordingly ignored by the page, since 1. users cannot do anything about it, and 2. it blocks them from managing their other external accounts.

Screenshot 2023-01-30 at 13 03 47

Test plan

Verified manually and adjusted unit test

@cla-bot cla-bot Bot added the cla-signed label Jan 30, 2023
@pjlast pjlast requested a review from kopancek January 30, 2023 11:36
@pjlast pjlast enabled auto-merge (squash) January 30, 2023 12:16
@pjlast pjlast merged commit 38a7586 into main Jan 30, 2023
@pjlast pjlast deleted the pjlast/account-security-page-missing-provider branch January 30, 2023 12:25
mibali added a commit that referenced this pull request Jan 31, 2023
…#47094)

* Added bug fix for BB server repos

* Added bug fix for BB server repos

* Update CHANGELOG.md

Co-authored-by: Indradhanush Gupta <indradhanush.gupta@gmail.com>

* Fix Account Security page if auth provider removed (#47092)

* updated the changelog

* updated the changelog

* updated the changelog

* updated the changelog

* updated the changelog

---------

Co-authored-by: topebali <topebali97@gmail.com>
Co-authored-by: Indradhanush Gupta <indradhanush.gupta@gmail.com>
Co-authored-by: Petri-Johan Last <petri.last@sourcegraph.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants