AuthN v0.3.0 AuthN.Ecto.AuthNFields behaviour View Source

Provides macros for defining the fields that are used for user accounts' credentials. identifier_field/1 defines the field storing the login name (usually the user's email or username) and password_field/1 defines the field storing the hashed password.

Link to this section Summary

Functions

Defines which field stores the user's login (usually an email or username).

Defines which field is used for the user's password.

Link to this section Functions

Link to this macro

identifier_field(field_name)

View Source (macro)

Defines which field stores the user's login (usually an email or username).

Link to this macro

password_field(field_name)

View Source (macro)

Defines which field is used for the user's password.

Link to this section Callbacks

Link to this callback

get_identifier_field()

View Source
get_identifier_field() :: atom()
Link to this callback

get_password_field()

View Source
get_password_field() :: atom()