Class: Booth::Audits::Register::WrongPassword

Inherits:
Object
  • Object
show all
Includes:
Logging, MethodObject
Defined in:
lib/booth/audits/register/wrong_password.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/booth/audits/register/wrong_password.rb', line 12

def call
  debug { 'Auditing wrong password...' }

  ::Booth::Models::Audit.create! credential: credential,
                                 ip: ip,
                                 agent: agent,
                                 event: :entered_wrong_password

  nil
end