Add identifier when login with password

Since Matrix spec v1, the username when login with password should be
sent in the `identifier` field, as explained here: https://spec.matrix.org/v1.1/client-server-api/#matrix-user-id

A full example of a password based login payload can be found here: https://spec.matrix.org/v1.1/client-server-api/#password-based
This commit is contained in:
Guillem Nieto Taló 2024-03-30 20:53:29 +01:00
parent 7d4d765ab4
commit 8e20c4822f

View File

@ -24,6 +24,10 @@ const authProvider = {
type: "m.login.password", type: "m.login.password",
user: username, user: username,
password: password, password: password,
identifier: {
type: "m.id.user",
user: username,
}
} }
) )
), ),