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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -