<?php /** * Pi Engine (http://pialog.org) * * @link http://code.pialog.org for the Pi Engine source repository * @copyright Copyright (c) Pi Engine http://pialog.org * @license http://pialog.org/license.txt BSD 3-Clause License */ /** * User register form config */ $captchaEnable = Pi::user()->config('register_captcha'); return array('email', 'name', 'identity', 'credential', 'credential-confirm' => array('element' => array('options' => array('label' => _a('Confirm credential')), 'attributes' => array('type' => 'password')), 'filter' => array('required' => true, 'filters' => array(array('name' => 'StringTrim')), 'validators' => array(array('name' => 'Identical', 'options' => array('token' => 'credential', 'strict' => true))))), 'captcha' => !$captchaEnable ? false : array('element' => array('type' => 'captcha', 'options' => array('label' => _a('Please type the word.'), 'separator' => '<br />', 'captcha_position' => 'append'))));