Changes the password of this.
If password_mode
is ACT_USER_PASSWORD_MODE_SET_AT_LOGIN then the user will be asked for a new password at the next login.
If password_mode
is ACT_USER_PASSWORD_MODE_NONE then the user will not require a password to log in.
Note this function is synchronous and ignores errors.
this |
the user object to alter. |
password_mode |