-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SG-1056] Fix login prompt loop for added accounts #2357
Merged
LRNcardozoWDF
merged 2 commits into
master
from
bug/SG-1056-Fix-prompt-account-already-added-loop
Feb 10, 2023
Merged
[SG-1056] Fix login prompt loop for added accounts #2357
LRNcardozoWDF
merged 2 commits into
master
from
bug/SG-1056-Fix-prompt-account-already-added-loop
Feb 10, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpbw2
reviewed
Feb 10, 2023
(await _stateService.GetEnvironmentUrlsAsync(userId))?.Base == _environmentService.BaseUrl && | ||
await _stateService.IsAuthenticatedAsync(userId)) | ||
{ | ||
await _accountManager.PromptToSwitchToExistingAccountAsync(userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but per existing patterns leave the return
here and keep StartLoginAction()
outside like before
mpbw2
approved these changes
Feb 10, 2023
trmartin4
pushed a commit
that referenced
this pull request
Feb 10, 2023
* SG-1056 Fix login prompt loop for added accounts * SG-1056 Fix PR comment (cherry picked from commit f42c677)
Eeebru
added a commit
that referenced
this pull request
Feb 15, 2023
* [SG-1057] Make check breaches true by default (#2351) (cherry picked from commit 6875389) * [SG-1055] Init strength bar color (#2352) (cherry picked from commit 3780587) * [SG-1052] Fix copy (#2353) (cherry picked from commit 0bd1b3f) * [SG-1056] Fix login prompt loop for added accounts (#2357) * SG-1056 Fix login prompt loop for added accounts * SG-1056 Fix PR comment (cherry picked from commit f42c677) * Bumped version to 2023.2.0 --------- Co-authored-by: André Bispo <abispo@bitwarden.com> Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com> Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com> Co-authored-by: Opeyemi Alao <54288773+Eeebru@users.noreply.github.com>
Eeebru
pushed a commit
that referenced
this pull request
Feb 15, 2023
* [SG-1057] Make check breaches true by default (#2351) (cherry picked from commit 6875389) * [SG-1055] Init strength bar color (#2352) (cherry picked from commit 3780587) * [SG-1052] Fix copy (#2353) (cherry picked from commit 0bd1b3f) * [SG-1056] Fix login prompt loop for added accounts (#2357) * SG-1056 Fix login prompt loop for added accounts * SG-1056 Fix PR comment (cherry picked from commit f42c677) * Bumped version to 2023.2.0 --------- Co-authored-by: André Bispo <abispo@bitwarden.com> Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com> Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com> Co-authored-by: Opeyemi Alao <54288773+Eeebru@users.noreply.github.com> (cherry picked from commit bc439b4)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Objective
Fix ‘Account already added Would you like to switch to it now?’ prompt loop when performing login with an account already added.
Code changes
Before you submit
dotnet format --verify-no-changes
) (required)