expected v0.1.1 Expected.Login View Source

A struct defining login information.


  • username - the login username
  • serial - the login serial (i.e. a kind of persistent session ID for a given machine)
  • token - the token for next authentication
  • sid - the current session ID
  • created_at - the initial login timestamp
  • last_login - the timestamp of last login using this serial
  • last_ip - the last IP used to login with this serial
  • last_useragent - the last user agent used to login

Link to this section Summary



A login


Returns the login fields list

Returns the login keys list

Link to this section Types

Link to this type t() View Source
t() :: %Expected.Login{created_at: integer(), last_ip: :inet.ip_address(), last_login: integer(), last_useragent: String.t(), serial: String.t(), sid: String.t(), token: String.t(), username: String.t()}

A login

Link to this section Functions

Link to this function fields() View Source
fields() :: keyword()

Returns the login fields list.

Link to this function keys() View Source
keys() :: [atom()]

Returns the login keys list.