See
PublishedAPI for packages intended to be used by Plugin and Contrib authors, or
browse all packages.
See also
Developing plugins,
Developer's Bible,
Technical Overview
SMELL / FIX / TODO count: 9
internal package Foswiki::UI::Register
User registration handling.
StaticMethod register_cgi( $session )
register command handler.
This method is designed to be
invoked via the
UI::run method.
SMELL: verify that someone is logged in, and they are allowed
SMELL: is this used any more? It should be going through manage.
StaticMethod bulkRegister($session)
Called by
ManageCgiScript::bulkRegister (requires authentication) with
topic = the page with the entries on it.
NB. bulkRegister is invoked from
ManageCgiScript. Why? Who knows.
TODO: should check that the header row actually contains the
TODO: and consider using MAKETEXT to enable translated tables.
SMELL: Field Validations
SMELL: used for Register unit tests
StaticMethod deleteUser($session)
CGI function that deletes the current user
Renames the
current user's topic (with renaming all links) and
removes user entry from passwords.
NB. deleteUser is invoked from the
manage script.
StaticMethod addUserToGroup($session)
adds users to a group
- groupname parameter must a a single groupname (group does not have to exist)
- username can be a single login/wikiname/(cuid?), a URLParam list, or a comma separated list.
NB. Invoked from the
manage script
StaticMethod removeUserFromGroup($session)
Removes users from a group
- groupname parameter must a a single groupname (group does not have to exist)
- username can be a single login/wikiname/(cuid?), a URLParam list, or a comma separated list.
NB. Invoked from the
manage script
SMELL: should give consideration to disabling
TODO: should really tell the user too?
SMELL: this means we fail hard if there are 2 FORMDATA vars -
StaticMethod expirePendingRegistrations()
This routine expires registration files. This is called by
tick_foswiki to expire stale registrations.
_processDeleteUser()
Removes the user from the installation.