Rank 3: Container
Hello, what is the right way to pass oldPassword parameters to change password? I referred to the documentation, but i can't get it right.
The below gave me error Invalid password: Password must be at least 8 characters. I confirm that both my old and new password is >8 chars.
return account.updatePassword(
{
password: newPassword,
oldPassword: currentPassword
});
The below gave me error oldPassword is not defined.
return account.updatePassword(newPassword, currentPassword);