Change login password

post/api/v2/user/changepassword

Update the login password for a given user, along with providing updated keychains for any wallet passphrases which were also updated to the new password.

This allows more for a more intuitive user experience where changing the user login password also changes any matching wallet passphrases. This gives the feeling that the user login password and matching wallet passphrases are "linked" and get updated in sync.

Request Body

password string required
The updated user login password. Note that this should **not** be provided in plaintext, and instead should be given as a HMAC using the username as the key, and the password as the input.
oldPassword string required
The current user login password. Note that this should **not** be provided in plaintext, and instead should be given as a HMAC using the username as the key, and the password as the input.
version number
Keychain version counter.
keychains dictionary<string, string>
V1 keychains which match the user login password and should be updated. Each key in this object should be a public key, and each value should be the corresponding encrypted private key.
string
v2_keychains dictionary<string, string>
V2 keychains which match the user login password and should be updated. Each key in this object should be a public key, and each value should be the corresponding encrypted private key. **Note:** Public keys are not validated, and if a public key is not found in the database, it will be skipped.
string

200 Response