PHP 클래스 LoginAttempts

상속: implements IResource
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 메소드들

메소드 설명
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