Updated to work with latest pickles.

This commit is contained in:
Josh Sherman 2014-08-04 00:40:30 +00:00
parent 998327b35f
commit 526670d333
11 changed files with 21 additions and 648 deletions

View file

@ -2,20 +2,20 @@
class user_create extends AnonymousModule
{
protected $ajax = true;
protected $method = 'POST';
protected $validate = array(
public $ajax = true;
public $method = 'POST';
public $validate = array(
'email' => array(
'length:>:100' => 'Email addresses may not be more than 100 characters.',
'length:<:100' => 'Email addresses may not be more than 100 characters.',
'filter:email' => 'Your email address is invalid.',
),
'username' => array(
'length:<:4' => 'Usernames may not be less than 4 characters.',
'length:>:30' => 'Usernames may not be more than 50 characters.',
'length:>:4' => 'Usernames may not be less than 4 characters.',
'length:<:30' => 'Usernames may not be more than 50 characters.',
'regex:is:/[^a-z0-9]+/i' => 'Usernames may only contain letters and numbers.',
),
'password' => array(
'length:<:8' => 'Passwords may not be less than 8 characters.',
'length:>:8' => 'Passwords may not be less than 8 characters.',
),
);