Skip to content

Commit

Permalink
legacyprovision: remove /login 200 payload
Browse files Browse the repository at this point in the history
  • Loading branch information
purpshell committed Oct 28, 2024
1 parent feb9d35 commit d2fdb22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions cmd/mautrix-twitter/legacyprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ func legacyProvLogin(w http.ResponseWriter, r *http.Request) {
} else if finalStep.StepID != connector.LoginStepIDComplete {
jsonResponse(w, http.StatusInternalServerError, Error{ErrCode: "M_UNKNOWN", Error: "Unexpected login step"})
} else {
jsonResponse(w, http.StatusOK, Response{
Success: true,
Status: "logged_in",
})
jsonResponse(w, http.StatusOK, map[string]any{})
go handleLoginComplete(context.WithoutCancel(ctx), user, finalStep.CompleteParams.UserLogin)
}
}
Expand Down
1 change: 0 additions & 1 deletion cmd/mautrix-twitter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func main() {
}
m.PostStart = func() {
if m.Matrix.Provisioning != nil {

m.Matrix.Provisioning.Router.HandleFunc("/v1/api/whoami", legacyProvStatus).Methods(http.MethodGet)
m.Matrix.Provisioning.Router.HandleFunc("/v1/api/login", legacyProvLogin).Methods(http.MethodPost)
m.Matrix.Provisioning.Router.HandleFunc("/v1/api/logout", legacyProvLogout).Methods(http.MethodPost)
Expand Down

0 comments on commit d2fdb22

Please sign in to comment.