Skip to content

Commit

Permalink
v2: make legacy provisioning logout a no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jun 26, 2024
1 parent 72e9cc6 commit d50bc09
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cmd/mautrix-signal-v2/legacyprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,7 @@ func legacyProvLinkWaitAccount(w http.ResponseWriter, r *http.Request) {
}

func legacyProvLogout(w http.ResponseWriter, r *http.Request) {
user := m.Matrix.Provisioning.GetUser(r)
for {
login := user.GetDefaultLogin()
if login == nil {
break
}
login.Logout(r.Context())
}
// No-op for backwards compatibility
legacyprovision.JSONResponse(w, http.StatusOK, nil)
}

Expand Down

0 comments on commit d50bc09

Please sign in to comment.