SqlMembershipProvider.Membership (sql_membership_provider v0.3.2)
Struct for representing a user's membership to an application and their authentication information.
Link to this section Summary
Functions
Fetch a membership by user id.
Check if a plaintext password matches a user's hashed password.
Link to this section Types
Specs
t() :: %SqlMembershipProvider.Membership{ __meta__: Ecto.Schema.Metadata.t(), application: (SqlMembershipProvider.Application.t() | Ecto.Association.NotLoaded.t()) | nil, application_id: binary() | nil, comment: String.t() | nil, create_date: DateTime.t(), email: String.t() | nil, failed_password_answer_attempt_count: integer(), failed_password_answer_attempt_window_start: DateTime.t(), failed_password_attempt_count: integer(), failed_password_attempt_window_start: DateTime.t(), is_approved: boolean(), is_locked_out: boolean(), last_lockout_date: DateTime.t(), last_login_date: DateTime.t(), last_password_changed_date: DateTime.t(), lowered_email: String.t() | nil, mobile_pin: String.t() | nil, password: String.t(), password_answer: String.t() | nil, password_format: integer(), password_question: String.t() | nil, password_salt: String.t(), user: (SqlMembershipProvider.User.t() | Ecto.Association.NotLoaded.t()) | nil, user_id: binary() }
Link to this section Functions
Link to this function
find_by_user_id(user_id)
Specs
find_by_user_id(String.t()) :: Ecto.Query.t()
Fetch a membership by user id.
Link to this function
is_password_valid?(membership, password)
Specs
Check if a plaintext password matches a user's hashed password.