AuthShield v0.0.4 AuthShield.Authentication.Schemas.LoginAttempt View Source

User login attempts.

Link to this section Summary

Types

t()

Abstract loggin attempt module type.

Functions

Generates an Ecto.Changeset struct with the changes.

Link to this section Types

Link to this type

t()

View Source
t() :: %AuthShield.Authentication.Schemas.LoginAttempt{
  __meta__: term(),
  id: binary(),
  inserted_at: NaiveDateTime.t(),
  remote_ip: String.t(),
  status: String.t(),
  updated_at: NaiveDateTime.t(),
  user: AuthShield.Resources.Schemas.User.t(),
  user_agent: String.t(),
  user_id: term()
}

Abstract loggin attempt module type.

Link to this section Functions

Link to this function

changeset(model, params)

View Source
changeset(model :: t(), params :: map()) :: Ecto.Changeset.t()

Generates an Ecto.Changeset struct with the changes.