Package
A User object is an internal representation of a user in the real world.
The object knows about users having login names, wiki names, personal
topics, and email addresses.
| ||||||||
Added: | ||||||||
> > | ||||||||
creates a password entry
$newUserPassword unencrypted password
'1' if success
TODO: need to improve the error mechanism so TWikiAdmins? know what failed
ObjectMethod resetPassword () -> $newPasswordReset the users password, returning the new generated password. ObjectMethod emails () -> @emailAddress
If this is a user, return their email addresses. If it is a group,
return the addresses of everyone in the group.
ObjectMethod setEmails ($user,@emails)Fetch the email address(es) for the given usernameObjectMethod isAdmin () -> $booleanTrue if the user is an admin (is a member of the $TWiki::cfg{SuperAdminGroup}) ObjectMethod getGroups () -> @groups
Get a list of user objects for the groups a user is in
ObjectMethod isInList ($list) -> $booleanReturn true we are in the list of user objects passed. $list is a string representation of a user list.ObjectMethod isGroup () -> $booleanTest if this is a group user or not ObjectMethod groupMembers () -> @members
Return a list of user objects that are members of this group. Should only be
called on groups.
|
Package
A User object is an internal representation of a user in the real world.
The object knows about users having login names, wiki names, personal
topics, and email addresses.
| ||||||||
Changed: | ||||||||
< < | '1' if success | |||||||
> > | undef if success, error message otherwise | |||||||
ObjectMethod addPassword ($newPassword) -> $booleancreates a password entry$newUserPassword unencrypted password
'1' if success
TODO: need to improve the error mechanism so TWikiAdmins? know what failed
ObjectMethod resetPassword () -> $newPasswordReset the users password, returning the new generated password. ObjectMethod emails () -> @emailAddress
If this is a user, return their email addresses. If it is a group,
return the addresses of everyone in the group.
ObjectMethod setEmails ($user,@emails)Fetch the email address(es) for the given usernameObjectMethod isAdmin () -> $booleanTrue if the user is an admin (is a member of the $TWiki::cfg{SuperAdminGroup}) ObjectMethod getGroups () -> @groups
Get a list of user objects for the groups a user is in
ObjectMethod isInList ($list) -> $booleanReturn true we are in the list of user objects passed. $list is a string representation of a user list.ObjectMethod isGroup () -> $booleanTest if this is a group user or not ObjectMethod groupMembers () -> @members
Return a list of user objects that are members of this group. Should only be
called on groups.
|
Package
A User object is an internal representation of a user in the real world.
The object knows about users having login names, wiki names, personal
topics, and email addresses.
|