Skip to content

Commit

Permalink
Add identifier when login with password
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gnieto committed Apr 20, 2024
1 parent 7d4d765 commit cf25e73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/synapse/authProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ const authProvider = {
type: "m.login.password",
user: username,
password: password,
identifier: {
type: "m.id.user",
user: username,
},
}
)
),
Expand Down

0 comments on commit cf25e73

Please sign in to comment.