data/TWiki/TWikiUIRegisterDotPm.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 ---+ Package =TWiki::UI::Register=
     2 
     3 User registration handling.
     4 
     5 
     6 %TOC%
     7 
     8 ---++ StaticMethod *register_cgi* <tt>($session)</tt>
     9 
    10 =register= command handler.
    11 This method is designed to be
    12 invoked via the =UI::run= method.
    13 
    14 
    15 
    16 ---++ StaticMethod *bulkRegister* <tt>($session)</tt>
    17 
    18   Called by ManageCgiScript::bulkRegister (requires authentication) with topic = the page with the entries on it.
    19 
    20 
    21 
    22 ---++ StaticMethod *registerAndNext* <tt>($session)</tt>
    23 
    24 This is called when action = register or action = ""
    25 
    26 It calls register and either Verify or Finish.
    27 
    28 Hopefully we will get workflow integrated and rewrite this to be table driven
    29 
    30 
    31 
    32 ---++ StaticMethod *register* <tt>($session)</tt>
    33 
    34 This is called through: TWikiRegistration -> RegisterCgiScript -> here
    35 
    36 
    37 
    38 ---++ StaticMethod *resetPassword* <tt>($session)</tt>
    39 
    40 Generates a password. Mails it to them and asks them to change it. Entry
    41 point intended to be called from UI::run
    42 
    43 
    44 
    45 ---++ StaticMethod *changePassword* <tt>($session)</tt>
    46 
    47 Change the user's password and/or email. Details of the user and password
    48 are passed in CGI parameters.
    49 
    50    1 Checks required fields have values
    51    2 get wikiName and userName from getUserByEitherLoginOrWikiName(username)
    52    3 check passwords match each other, and that the password is correct, otherwise 'wrongpassword'
    53    4 TWiki::User::updateUserPassword
    54    5 'oopschangepasswd'
    55 
    56 The NoPasswdUser case is not handled.
    57 
    58 An admin user can change other user's passwords.
    59 
    60 
    61 
    62 ---++ StaticMethod *verifyEmailAddress* <tt>($session)</tt>
    63 
    64 This is called: on receipt of the activation password -> RegisterCgiScript -> here
    65    1 calls _loadPendingRegistration(activation password)
    66    2 throws oops if appropriate
    67    3 calls emailRegistrationConfirmations
    68    4 still calls 'oopssendmailerr' if a problem, but this is not done uniformly
    69 
    70