Limit the number of account / hour / ip

This commit is contained in:
Pierre HUBERT
2018-08-20 14:48:21 +02:00
parent 5bddd624ca
commit 4937e66c71
2 changed files with 11 additions and 1 deletions

View File

@ -21,6 +21,7 @@ class APILimits {
* Actions list
*/
const ACTION_LOGIN_FAILED = "failed_login";
const ACTION_CREATE_ACCOUNT = "create_account";
/**
* Actions configruation
@ -30,7 +31,12 @@ class APILimits {
//Login failed
self::ACTION_LOGIN_FAILED => array(
"limit" => 10
)
),
//Create an account
self::ACTION_CREATE_ACCOUNT => array(
"limit" => 10
),
);
/**