title: Devise: Registering log in attempts
body: <p>I have a Rails 3.0 project using <strong><em>devise</em></strong> and I've been requested to register in DB every succesful login and every failed attempt.</p>
  
  <p>From the <strong><em>devise</em></strong> documentation I think I'd have to extend <code>FailureApp</code> but the examples are just redirecting users and not using the model at all. In <strong>stackoverflow</strong> I've just found <a href="https://stackoverflow.com/questions/5956508/log-incident-when-an-account-is-locked-after-three-failed-attempts-with-devise">this question</a> but it remained unanswered, which is not encouraging</p>
  
  <p>Can anyone tell me if I'm correct in this approach or it can't be done this way, or if there is some easier alternative I'm missing?</p>
  
  <p>(I know there is no code yet, I'm just looking for a small guidance before diving in)</p>
  
  <p>Thanks.</p>