Difference between revisions of "OnRegisterValidate"

(Created page with "===Description=== This event trigger when validation of registration on user basic information such as user name and email. @since 1.6 ===Params=== *'''user post data''' - a...")
(No difference)

Revision as of 18:04, 18 January 2013

Description

This event trigger when validation of registration on user basic information such as user name and email.

@since 1.6

Params

  • user post data - array, consist of form post data
Array
(
    [jsname] => Alen
    [jsusername] => alen
    [usernamepass] => alen
    [jsemail] => alen@hotmail.com
    [emailpass] => alen@hotmail.com
    [jspassword] => password
    [jspassword2] => password
    [tnc] => Y
    [submit] => Next
    [task] => register_save
    [id] => 0
    [gid] => 0
    [authenticate] => 1
    [authkey] => 4857d92e85efe6e31ed3ea374a15f683
)


Example

function onRegisterValidate($post) 
{
    $err    = array();
 
    if(empty($post['jsname']))
    {
        $err[] = JText::_('CC IMPROPER USERNAME');
    }
 
    .
    .
    . 
 
    return $err;
}