Difference: TWikiUsersDotPm (5 vs. 6)

Revision 62011-08-21 - TWikiContributor

Line: 88 to 88
 custom mappers and registration modules.
Changed:
<
<

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

>
>

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

 
  • $login - user login name. If undef, $wikiname will be used as the login name.
  • $wikiname - user wikiname. If undef, the user mapper will be asked to provide it.
  • $password - password. If undef, a password will be generated.
Added:
>
>
  • $mcp - must change password flag.
  Add a new TWiki user identity, returning the canonical user id for the new user. Used ONLY for user registration.
Line: 177 to 178
 
Added:
>
>

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 isAdmin ($cUID) -> $boolean

True if the user is an admin

Line: 291 to 322
 
Changed:
<
<

ObjectMethod setPassword ($cUID,$newPassU,$oldPassU) -> $boolean

>
>

ObjectMethod setPassword ($cUID,$newPassU,$oldPassU,$mcp) -> $boolean

  If the $oldPassU matches matches the user's password, then it will replace it with $newPassU.
Line: 303 to 334
  Otherwise returns 1 on success, undef on failure.
Added:
>
>
$mcp is the "must change password flag" that forces the user to change the password on next login
 

ObjectMethod passwordError () -> $string

Line: 321 to 355
 topics, which may still be linked.
Added:
>
>

ObjectMethod _USERMANAGER ($twiki,$params)

ObjectMethod _userManagerQueryUsers ($params)

ObjectMethod _userManagerEditUser ($params)

ObjectMethod _renderUserDataField ($fieldRef)

 
This site is powered by the TWiki collaboration platformCopyright © 1999-2019 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.TWikiUsersDotPm.