Difference: TWikiUserMappingDotPm (2 vs. 3)

Revision 32011-08-21 - TWikiContributor

Line: 93 to 93

ObjectMethod addUser ($login,$wikiname,$password,$emails) -> $cUID


ObjectMethod addUser ($login,$wikiname,$password,$emails,$mcp) -> $cUID

  Add a user to the persistant mapping that maps from usernames to wikinames and vice-versa.
Line: 225 to 225

ObjectMethod *getMustChangePassword ($cUID) -> $flag

Returns 1 if the $cUID must change the password, else 0. Returns undef if $cUID not found.

ObjectMethod getUserData ($cUID) -> $dataRef

Return a reference to an array of hashes with user data, used to manage users. Each item is a hash with:

  • {name} - name of field, such as "email"
  • {title} - title of field, such as "E-mail"
  • {value} - value of field, such as "jimmy@example.com"
  • {type} - type of field: text, password, checkbox, label
  • {size} - size of field, such as 40
  • {note} - comment note, if any

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 {name} and {value} are used.


ObjectMethod *findUserByWikiName ($wikiname) -> listofcUIDsassociatedwiththatwikiname

  • $wikiname - wikiname to look up
Return a list of canonical user names for the users that have this wikiname.
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiUserMappingDotPm.