ruby on rails 3 - Log incident when an account is locked after three failed attempts with Devise -


i want log in database incident when users account locked, i'm using rails3 , devise, think i'll need override action in devise controller, don't know wich controller/action , how capture users id. tips?

i know old question, easiest approach override lock_access! lockable mixin (in user model):

def lock_access!   super   # record account lock here end 

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -