You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
750 B
27 lines
750 B
8 years ago
|
# Login Attempts Model
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
## References
|
||
|
|
||
|
{% PHPclassDisplayer "Login_Attempts_model" %}
|
||
|
{% endPHPclassDisplayer %}
|
||
|
|
||
|
{% PHPmethodDisplayer "get()" %}
|
||
|
Retrieves a login attempt from database, based on IP-Address and timestamp.
|
||
|
{% return %}
|
||
|
Value of login attempts
|
||
|
{% endPHPmethodDisplayer %}
|
||
|
|
||
|
{% PHPmethodDisplayer "update()" %}
|
||
|
Updates/Created a login attempt in database, based on IP-Address and timestamp.
|
||
|
{% return %}
|
||
|
Either `TRUE` if login attempt below `max_attempts`, or `FALSE`.
|
||
|
{% endPHPmethodDisplayer %}
|
||
|
|
||
|
{% PHPmethodDisplayer "delete()" %}
|
||
|
Removes a login attempt from database, based on IP-Address and timestamp.
|
||
|
{% return %}
|
||
|
Either `TRUE` on success, or `FALSE`.
|
||
|
{% endPHPmethodDisplayer %}
|