lucee.Componentcborm.models.BaseORMService
cborm.models.VirtualEntityService
contentbox.models.security.LoginTrackerService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- This Service tracks logins into the ContentBox System
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
cb
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
array
|
getAll([any sortOrder='attempts'])
Retrieve all auth logs. |
any
|
getLastLogins(numeric max)
Get the last successful logins. |
boolean
|
isBlocked([LoginAttempt attempt])
Verify if an attempt is being blocked or not. |
LoginTrackerService
|
reset()
Reset login attempts if the time limit is reached. |
LoginTrackerService
|
rotate()
Rotate auth logs. |
LoginTrackerService
|
truncate()
Truncate the entire auth logs. |
Methods inherited from class cborm.models.VirtualEntityService |
---|
autoCast, convertIdValueToJavaType, convertValueToJavaType, count, countWhere, deleteAll, deleteByID, deleteByQuery, deleteWhere, evictCollection, executeQuery, exists, findAllWhere, findWhere, get, getEntityName, getKey, getOrFail, getPropertyNames, getTableName, idCast, list, new, newCriteria, onMissingMethod, setEntityName |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- cbhelper@contentboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:{this}serializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:settingService@contentboxserializable
- trueMethod Detail |
---|
Retrieve all auth logs
getAll
in class
cborm.models.VirtualEntityService
sortOrder
- The sorting columns.Get the last successful logins
max
- How many to retrieveVerify if an attempt is being blocked or not
attempt
- The login attempt objectReset login attempts if the time limit is reached
Rotate auth logs Usually called by the {@code LoginTracker} Interceptor asynchronously
Truncate the entire auth logs