PHP Class LoginAttempts

Inheritance: implements IResource
Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

ClearLoginAttemptsForIp() public static méthode

Resets the login counter by clearing all IP records from the failed login attempt database after a sucessful login.
public static ClearLoginAttemptsForIp ( ) : void
Résultat void

DeleteOldLoginAttempts() public static méthode

Delete IP records older than 12 hours from the database.
public static DeleteOldLoginAttempts ( ) : void
Résultat void

MaxLoginAttemptsExceeded() public static méthode

Checks if failed login attempts exceeds the number of failed login attempts saved in the System Preferences.
public static MaxLoginAttemptsExceeded ( ) : boolean
Résultat boolean

RecordLoginAttempt() public static méthode

Insert IP record to the database which has a failed login attempt.
public static RecordLoginAttempt ( ) : void
Résultat void