krn.SessionChangePassword

This job changes the password of the user currently logged into the working session. Unlike mng.SetUserAttributes, the user must know the old password — the call is therefore suited for "self-service" password changes in the client.

This job is not listed in the official enaio® kernel engine overview. This description was reconstructed from the call code of the enaio-jobs-custom template.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Reserved; always pass 0.

OldPassword

STRING

Yes

Current password as encoded hash (see krn.SessionLogin/UserPwd for the hash computation).

NewPassword

STRING

Yes

New password as encoded hash.

2. Return Value

(INT): 0 = job successful, otherwise error code (e.g. when OldPassword is wrong).

3. See Also