diff --git a/clientapi/routing/login.go b/clientapi/routing/login.go index bc38b8340..88a961ee1 100644 --- a/clientapi/routing/login.go +++ b/clientapi/routing/login.go @@ -19,6 +19,8 @@ import ( "net/http" "github.com/matrix-org/dendrite/clientapi/auth" + "github.com/matrix-org/dendrite/clientapi/auth/authtypes" + "github.com/matrix-org/dendrite/clientapi/jsonerror" "github.com/matrix-org/dendrite/clientapi/userutil" "github.com/matrix-org/dendrite/setup/config" userapi "github.com/matrix-org/dendrite/userapi/api" @@ -42,10 +44,9 @@ type flow struct { func passwordLogin() flows { f := flows{} - s := flow{ - Type: "m.login.password", - } - f.Flows = append(f.Flows, s) + f.Flows = append(f.Flows, flow{ + Type: authtypes.LoginTypePassword, + }) return f }