Replace "m.login.password" with authtypes constant

Signed-off-by: Sijmen <me@sijman.nl>
Signed-off-by: Sijmen Schoon <me@sijman.nl>
This commit is contained in:
Sijmen Schoon 2023-01-06 23:14:36 +01:00
parent 477a44faa6
commit c335f6d350
No known key found for this signature in database
GPG key ID: DAF7821E067D9C48

View file

@ -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
}