@@ -83,8 +83,11 @@ func TestChangePassword(t *testing.T) {
8383 _ , sessionOptional := createSession (t , deployment , passwordClient .UserID , password2 )
8484 reqBody := client .WithJSONBody (t , map [string ]interface {}{
8585 "auth" : map [string ]interface {}{
86- "type" : "m.login.password" ,
87- "user" : passwordClient .UserID ,
86+ "type" : "m.login.password" ,
87+ "identifier" : map [string ]interface {}{
88+ "type" : "m.id.user" ,
89+ "user" : passwordClient .UserID ,
90+ },
8891 "password" : password2 ,
8992 },
9093 "new_password" : "new_optional_password" ,
@@ -108,8 +111,11 @@ func changePassword(t *testing.T, passwordClient *client.CSAPI, oldPassword stri
108111 t .Helper ()
109112 reqBody := client .WithJSONBody (t , map [string ]interface {}{
110113 "auth" : map [string ]interface {}{
111- "type" : "m.login.password" ,
112- "user" : passwordClient .UserID ,
114+ "type" : "m.login.password" ,
115+ "identifier" : map [string ]interface {}{
116+ "type" : "m.id.user" ,
117+ "user" : passwordClient .UserID ,
118+ },
113119 "password" : oldPassword ,
114120 },
115121 "new_password" : newPassword ,
0 commit comments