Skip to content

Commit

Permalink
legacyprovision: add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 13, 2024
1 parent c8e10e0 commit a327d7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/mautrix-gmessages/legacyprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ func legacyProvGoogleLoginStart(w http.ResponseWriter, r *http.Request) {
} else if nextStep.StepID == connector.LoginStepIDComplete {
go handleLoginComplete(context.WithoutCancel(r.Context()), user, nextStep.CompleteParams.UserLogin)
jsonResponse(w, http.StatusOK, LoginResponse{Status: "success"})
return
} else if nextStep.StepID != connector.LoginStepIDEmoji {
log.Warn().Str("step_id", nextStep.StepID).Msg("Unexpected step after submitting cookies")
jsonResponse(w, http.StatusInternalServerError, Error{
Expand Down

0 comments on commit a327d7a

Please sign in to comment.