Skip to content

Commit a327d7a

Browse files
committed
legacyprovision: add missing return
1 parent c8e10e0 commit a327d7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/mautrix-gmessages/legacyprovision.go

+1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ func legacyProvGoogleLoginStart(w http.ResponseWriter, r *http.Request) {
339339
} else if nextStep.StepID == connector.LoginStepIDComplete {
340340
go handleLoginComplete(context.WithoutCancel(r.Context()), user, nextStep.CompleteParams.UserLogin)
341341
jsonResponse(w, http.StatusOK, LoginResponse{Status: "success"})
342+
return
342343
} else if nextStep.StepID != connector.LoginStepIDEmoji {
343344
log.Warn().Str("step_id", nextStep.StepID).Msg("Unexpected step after submitting cookies")
344345
jsonResponse(w, http.StatusInternalServerError, Error{

0 commit comments

Comments
 (0)