PHP Класс LoginAttempts

Наследование: implements IResource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ClearLoginAttemptsForIp ( ) : void Resets the login counter by clearing all IP records from the failed login attempt database after a sucessful login.
DeleteOldLoginAttempts ( ) : void Delete IP records older than 12 hours from the database.
MaxLoginAttemptsExceeded ( ) : boolean Checks if failed login attempts exceeds the number of failed login attempts saved in the System Preferences.
RecordLoginAttempt ( ) : void Insert IP record to the database which has a failed login attempt.

Описание методов

ClearLoginAttemptsForIp() публичный статический Метод

Resets the login counter by clearing all IP records from the failed login attempt database after a sucessful login.
public static ClearLoginAttemptsForIp ( ) : void
Результат void

DeleteOldLoginAttempts() публичный статический Метод

Delete IP records older than 12 hours from the database.
public static DeleteOldLoginAttempts ( ) : void
Результат void

MaxLoginAttemptsExceeded() публичный статический Метод

Checks if failed login attempts exceeds the number of failed login attempts saved in the System Preferences.
public static MaxLoginAttemptsExceeded ( ) : boolean
Результат boolean

RecordLoginAttempt() публичный статический Метод

Insert IP record to the database which has a failed login attempt.
public static RecordLoginAttempt ( ) : void
Результат void