In that listner, what is general problem if I provide a HashMap to store
username and login count when login fails, and clear HashMap for that user
when login suceeds? Thanks!


Matt Raible-3 wrote:
> 
> If believe Acegi allows you to control this, but unfortunately, I
> don't know the configuration settings.
> 
> Matt
> 
> On 11/30/06, kkus <[EMAIL PROTECTED]> wrote:
>>
>> I went to acegi forum about this issue and found it seems we have to
>> create a
>> field in db to store attempted tries of failing login - mainly since at
>> that
>> point we don't have any session yet.
>>
>> I am wondering if there is another way to keep record of failing login.
>> Sample code which I have done is as below,
>>
>> public class ApplicationSecurityListener implements ApplicationListener {
>>
>>         public void onApplicationEvent(ApplicationEvent event) {
>>                 if (event instanceof AuthorizationFailureEvent) {
>>                         AuthorizationFailureEvent
>> authorizationFailureEvent =
>> (AuthorizationFailureEvent) event;
>>                 //need a way to record counts of login here - don't want
>> store it in db
>>
>> Any idea?
>> --
>> View this message in context:
>> http://www.nabble.com/locking-account-afer-several-tries-of-login-tf2735347s2369.html#a7630999
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/locking-account-afer-several-tries-of-login-tf2735347s2369.html#a7632633
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to