Line: 54 to 54 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < | ObjectMethod setPassword ($login,$newPassU,$oldPassU) -> $boolean | |||||||
> > | ObjectMethod setPassword ($login,$newPassU,$oldPassU,$mcp) -> $boolean | |||||||
If the $oldPassU matches matches the user's password, then it will replace it with $newPassU. | ||||||||
Line: 64 to 64 | ||||||||
If $oldPassU is 1, will force the change irrespective of the existing password, adding the user if necessary. | ||||||||
Added: | ||||||||
> > | If $mcp is true, the "must change password" flag is set | |||||||
Otherwise returns 1 on success, undef on failure. | ||||||||
Line: 127 to 129 | ||||||||
Added: | ||||||||
> > | ObjectMethod *getMustChangePassword ($cUID) -> $flagReturns 1 if the $cUID must change the password, else 0. Returns undef if $cUID not found.
ObjectMethod getUserData ($cUID) -> $dataRefReturn a reference to an array of hashes with user data, used to manage users. Each item is a hash with:
User management forms can be build dynamically from this data structure. Each password manager may return a different set of fields.
ObjectMethod setUserData ($cUID,$dataRef)
Set the user data of a user. Same array of hashes as getUserData is
assumed, although only Sub classes should return an empty string if save action is OK, or an error string starting with 'Error: '. | |||||||
ObjectMethod canFetchUsers () -> booleanreturns true if the fetchUsers method is implemented and can return an iterator of users. |