The AWS documentation for JS SDK says:
Force Change Password The user account is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change his or her password to a new value before doing anything else.
User accounts that are created by an administrator or developer start in this state.
But if for such a user I try to call forgotPassword
method of SDK, it errors saying something like: Password cannot be reset in the current state
.
SO how can I complete the registration of a user (created by admin in IAM) from my website. Which is the SDK method that should be called ?