Line: 92 to 92 | ||||||||
---|---|---|---|---|---|---|---|---|
used to change the user's password
$oldUserPassword unencrypted password
$newUserPassword unencrypted password | ||||||||
Changed: | ||||||||
< < | '1' if success | |||||||
> > | undef if success, error message otherwise | |||||||
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | Package =TWiki::UserA 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.
ClassMethod new ($session,$loginname,$wikiname)Construct a new user object for the given login name, wiki name. The wiki name can either be a wiki word or it can be a web- qualified wiki word. If the wiki name is not web qualified, the user is assumed to have their home topic in the $TWiki::cfg{UsersWebName} web.ObjectMethod wikiName () -> $wikiNameReturn the wikiname of the user (without the web!)ObjectMethod webDotWikiName () -> $webDotWikiReturn the fully qualified wikiname of the userObjectMethod login () -> $loginNameReturn the login name of the userObjectMethod web () -> $webNameReturn the registration web of the userObjectMethod equals () -> $booleanTest is this is the same user as another user objectObjectMethod stringify () -> $stringGenerate a string representation of this object, suitable for debuggingObjectMethod passwordExists () -> $booleanChecks to see if there is an entry in the password system Return '1' if true, '' if notObjectMethod checkPassword ($password) -> $booleanused to check the user's password$password unencrypted password
$success '1' if success
TODO: need to improve the error mechanism so TWikiAdmins know what failed
ObjectMethod removePassword () -> $booleanUsed to remove the user and password from the password system. Returns true if successObjectMethod changePassword ($user,$oldUserPassword,$newUserPassword) -> $booleanused to change the user's password$oldUserPassword unencrypted password
$newUserPassword unencrypted password
'1' if success
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.@emai
If this is a user, return their email addresses. If it is a group,
return the addresses of everyone in the group.
|