Updated to work with latest pickles.
This commit is contained in:
parent
998327b35f
commit
526670d333
11 changed files with 21 additions and 648 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
class api_v1_leaderboard extends APIv1
|
||||
{
|
||||
protected $request_methods = array('GET', 'POST', 'PUT');
|
||||
public $request_methods = array('GET', 'POST', 'PUT');
|
||||
|
||||
public function __default()
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class api_v1_leaderboards extends APIv1
|
||||
{
|
||||
protected $request_methods = 'GET';
|
||||
public $request_methods = 'GET';
|
||||
|
||||
public function __default()
|
||||
{
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
class leaderboard_create extends leaderboard_new
|
||||
{
|
||||
protected $ajax = true;
|
||||
protected $method = 'POST';
|
||||
protected $validate = array(
|
||||
public $ajax = true;
|
||||
public $method = 'POST';
|
||||
public $validate = array(
|
||||
'name' => array(
|
||||
'length:>:100' => 'Leaderboard name may not be more than 100 characters.',
|
||||
'length:<:100' => 'Leaderboard name may not be more than 100 characters.',
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
class user_authenticate extends AnonymousModule
|
||||
{
|
||||
protected $ajax = true;
|
||||
protected $method = 'POST';
|
||||
protected $validate = array(
|
||||
public $ajax = true;
|
||||
public $method = 'POST';
|
||||
public $validate = array(
|
||||
'email' => array(
|
||||
'length:>:100' => 'Invalid email address or password.',
|
||||
'length:<:100' => 'Invalid email address or password.',
|
||||
'filter:email' => 'Invalid email address or password.',
|
||||
),
|
||||
'password' => array(
|
||||
'length:<:8' => 'Invalid email address or password.',
|
||||
'length:>:8' => 'Invalid email address or password.',
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
@ -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.',
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue