From c335f6d350da414ef0f55ddb0610c504c885268b Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Fri, 6 Jan 2023 23:14:36 +0100 Subject: [PATCH] Replace "m.login.password" with authtypes constant Signed-off-by: Sijmen Signed-off-by: Sijmen Schoon --- clientapi/routing/login.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clientapi/routing/login.go b/clientapi/routing/login.go index 778c8c0c3..a9c3915a9 100644 --- a/clientapi/routing/login.go +++ b/clientapi/routing/login.go @@ -19,6 +19,7 @@ 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" @@ -42,10 +43,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 }