MCPcopy Create free account
hub / github.com/daodst/chat / newUserInteractiveResponse

Function newUserInteractiveResponse

clientapi/routing/register.go:252–260  ·  view source on GitHub ↗

newUserInteractiveResponse will return a struct to be sent back to the client during registration.

(
	sessionID string,
	fs []authtypes.Flow,
	params map[string]interface{},
)

Source from the content-addressed store, hash-verified

250// newUserInteractiveResponse will return a struct to be sent back to the client
251// during registration.
252func newUserInteractiveResponse(
253 sessionID string,
254 fs []authtypes.Flow,
255 params map[string]interface{},
256) userInteractiveResponse {
257 return userInteractiveResponse{
258 fs, sessions.getCompletedStages(sessionID), params, sessionID,
259 }
260}
261
262// http://matrix.org/speculator/spec/HEAD/client_server/unstable.html#post-matrix-client-unstable-register
263type registerResponse struct {

Callers 3

checkAndCompleteFlowFunction · 0.85
PasswordFunction · 0.85

Calls 1

getCompletedStagesMethod · 0.80

Tested by

no test coverage detected