diff --git a/tests/csapi/account_change_password_test.go b/tests/csapi/account_change_password_test.go index efd8ecb0..671a686f 100644 --- a/tests/csapi/account_change_password_test.go +++ b/tests/csapi/account_change_password_test.go @@ -83,8 +83,11 @@ func TestChangePassword(t *testing.T) { _, sessionOptional := createSession(t, deployment, passwordClient.UserID, password2) reqBody := client.WithJSONBody(t, map[string]interface{}{ "auth": map[string]interface{}{ - "type": "m.login.password", - "user": passwordClient.UserID, + "type": "m.login.password", + "identifier": map[string]interface{}{ + "type": "m.id.user", + "user": passwordClient.UserID, + }, "password": password2, }, "new_password": "new_optional_password", @@ -108,8 +111,11 @@ func changePassword(t *testing.T, passwordClient *client.CSAPI, oldPassword stri t.Helper() reqBody := client.WithJSONBody(t, map[string]interface{}{ "auth": map[string]interface{}{ - "type": "m.login.password", - "user": passwordClient.UserID, + "type": "m.login.password", + "identifier": map[string]interface{}{ + "type": "m.id.user", + "user": passwordClient.UserID, + }, "password": oldPassword, }, "new_password": newPassword, diff --git a/tests/csapi/account_deactivate_test.go b/tests/csapi/account_deactivate_test.go index b8a82ccb..9b2eaaa8 100644 --- a/tests/csapi/account_deactivate_test.go +++ b/tests/csapi/account_deactivate_test.go @@ -111,8 +111,11 @@ func deactivateAccount(t *testing.T, authedClient *client.CSAPI, password string t.Helper() reqBody := client.WithJSONBody(t, map[string]interface{}{ "auth": map[string]interface{}{ - "type": "m.login.password", - "user": authedClient.UserID, + "type": "m.login.password", + "identifier": map[string]interface{}{ + "type": "m.id.user", + "user": authedClient.UserID, + }, "password": password, }, })