diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go index c18b6e667..d8a991aca 100755 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go @@ -202,8 +202,8 @@ func Register( // TODO: Handle loading of previous session parameters from database. // TODO: Handle mapping registrationRequest parameters into session parameters - - return HandleUserInteractiveFlow(req, r.userInteractiveFlowRequest, sessionID, cfg, accountDB, deviceDB, + + return HandleUserInteractiveFlow(req, r.userInteractiveFlowRequest, sessionID, cfg, userInteractiveResponse{ // passing the list of allowed Flows and Params cfg.Derived.Registration.Flows, diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go b/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go index f29a9aad7..ce3ebd017 100755 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go @@ -247,9 +247,8 @@ func validateApplicationService( return matchedApplicationService.ID, nil } -// handleUIAAFlow will direct and complete UIAA flow stages -// that the client has requested. -func HandleUserInteractiveFlow ( +// HandleUserInteractiveFlow will direct and complete UIAA flow stages that the client has requested. +func HandleUserInteractiveFlow( req *http.Request, //the list of allowed flows and params @@ -257,8 +256,6 @@ func HandleUserInteractiveFlow ( sessionID string, cfg *config.Dendrite, - accountDB *accounts.Database, - deviceDB *devices.Database, res userInteractiveResponse, responseHandler userInteractiveResponseHandler, ) util.JSONResponse {