UserMgrChangeMyPassword (FUN)ΒΆ
FUNCTION UserMgrChangeMyPassword : RTS_IEC_RESULT
Changes the users password
- InOut:
Scope
Name
Type
Comment
Return
UserMgrChangeMyPasswordRTS_IEC_RESULT- Error code
ERR_OK: Password changed successfully
ERR_NOTINITIALIZED: The user management is not initialized or it is not loaded yet
ERR_OPERATION_DENIED: Password change is either not supported or not allowed
ERR_USER_MISMATCH: User name does not match
ERR_INVALID_HANDLE: hUser is invalid or unknown
ERR_PASSWORD_POLICY: Password does not fulfill the password policy requirements
Input
hUserRTS_IEC_HANDLEHandle to the user
pszUserREFERENCE TO STRING
Name of the user, limited to 59 chars
pszOldPasswordREFERENCE TO STRING
Old password (plain text), limited to 59 chars
pszNewPasswordREFERENCE TO STRING
New password (plain text), limited to 59 chars