module

Pared::Audit

Instance methods

locked_out?(email : String) : Bool
Source
log(user_id : Int64 | Nil, action_type : String, details : String, client_ip : String, db_conn : DB::Connection | DB::Database = Pared::Database.connection)
Source
log_login_failure(email : String, client_ip : String, db_conn : DB::Connection | DB::Database = Pared::Database.connection)
Source
recent(limit : Int32 = 100) : Array(Hash(String, String))
Source
recent_failures(email : String, within_seconds : Int32 = 600) : Int32
Source