Skip to content

Commit

Permalink
login: Reflect new value over the wire here
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Dec 6, 2024
1 parent fe51258 commit 1f0fa11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func RunTasksForUser(t *terminal.Terminal) error {
func CreateNewUser(loginStore LoginStore, idToken string) (bool, error) {
_, err := loginStore.CreateUser(idToken)
if err != nil {
if !(strings.Contains(err.Error(), "duplicate username") || strings.Contains(err.Error(), "duplicate external auth id")) {
if !(strings.Contains(err.Error(), "duplicate username") || strings.Contains(err.Error(), "duplicate external auth id") || strings.Contains(err.Error(), "identity already exists")) {
// This is a real error
return false, breverrors.WrapAndTrace(err)
}
Expand Down

0 comments on commit 1f0fa11

Please sign in to comment.