Package TWiki::UI::Register

User registration handling.

StaticMethod register_cgi ($session)

register command handler. This method is designed to be invoked via the UI::run method.

StaticMethod bulkRegister ($session)

Called by ManageCgiScript::bulkRegister (requires authentication) with topic = the page with the entries on it.

StaticMethod registerAndNext ($session)

This is called when action = register or action = ""

It calls register and either Verify or Finish.

Hopefully we will get workflow integrated and rewrite this to be table driven

StaticMethod register ($session)

This is called through: TWikiRegistration -> RegisterCgiScript -> here

StaticMethod resetPassword ($session)

Generates a password. Mails it to them and asks them to change it. Entry point intended to be called from UI::run

StaticMethod changePassword ($session)

Change the user's password and/or email. Details of the user and password are passed in CGI parameters.

  1. Checks required fields have values
  2. get wikiName and userName from getUserByEitherLoginOrWikiName(username)
  3. check passwords match each other, and that the password is correct, otherwise 'wrongpassword'
  4. TWiki::User::updateUserPassword
  5. 'oopschangepasswd'

The NoPasswdUser case is not handled.

An admin user can change other user's passwords.

StaticMethod verifyEmailAddress ($session)

This is called: on receipt of the activation password -> RegisterCgiScript -> here

  1. calls _loadPendingRegistration(activation password)
  2. throws oops if appropriate
  3. calls emailRegistrationConfirmations
  4. still calls 'oopssendmailerr' if a problem, but this is not done uniformly

r5 - 22 Jan 2008 - 03:21:35 - TWikiContributor
Linux & Open Source for AT91 Microchip Microprocessors

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Microchip® and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries. This site is powered by the TWiki collaboration platform

Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.

Ideas, requests, contributions ? Connect to LinksToCommunities page.

Syndicate this siteRSS ATOM