Feature Proposal: add the registration data to the parameters of the registrationHandler

Motivation

it converts the registrationHandler from an almost useless 'kinda login' handler, to one that can be used to implement things like AddUserToGroupsOnRegistration.

Description and Documentation

After the new user's topic is created, the Registration code calls
        $session->{plugins}->registrationHandler( $data->{WebName},
                                                  $data->{WikiName},
                                                  $data->{LoginName} );

This is a mostly unused handler, that could become much more useful, if we add a 4th parameter (or replace the 3 with one single parameter) $data. $data is a reference to a hash containing the validated version of the information from the TWikiRegistration topic.

It will probably also be beneficial to refactor the Bulk Registration to use the same code paths as the normal registration.

Examples

Impact

API
edit

Implementation

-- Contributors: SvenDowideit - 15 Dec 2007

Discussion

I would like to see just a little more spec for the community to be able to decide on this. I add myself to KennethLavrsen to move it away from the 14 day table until spec is available.

I only expect another 1-2 lines of text defining "add the registration data to the parameters of the registrationHandler".

Did you forget to add the DateOfCommitment or is it just because the topic is not ready yet?

-- KennethLavrsen - 17 Dec 2007

yes, this topic was not ready smile

-- SvenDowideit - 17 Dec 2007

Accepted by 14 day rule.

-- KennethLavrsen - 02 Jan 2008

it seems to me that we added the code to trunk before we moved house. I've added a littl docco to EmptyPlugin and maked as done.
Topic revision: r6 - 05 Jul 2015, GeorgeClark - This page was cached on 16 Oct 2018 - 06:42.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy