user.set_password ================= Set the password of the specified `username` to the `new_password` specified in payload. ValidationErrors will be raised in the following situations: * username does not exist * account is not local to the NAS (Active Directory, LDAP, etc) * account has password authentication disabled * account is locked NOTE: when authenticated session has less than FULL_ADMIN role, password changes will be rejected if the payload does not match the currently-authenticated user. NOTE: users authenticated with a one-time password will be able to change the password without submitting a second time. .. raw:: html
Must be at least 1
characters long