View Source Bonfire.Data.Identity.Credential (Bonfire v0.9.11-social-beta.6)

A Mixin that provides a password for local login.

Summary

Types

t()

@type t() :: %Bonfire.Data.Identity.Credential{
  __meta__: Ecto.Schema.Metadata.t(),
  account: Ecto.Schema.belongs_to(Bonfire.Data.Identity.Account.t()) | nil,
  id: Needle.UID.t() | nil,
  password: term(),
  password_hash: term(),
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil
}

Functions

changeset(cred \\ %Credential{}, params)

check_password(password, hash)

confirmation_changeset(cred \\ %Credential{}, params)

delete(struct, key)

dummy_check()

get(struct, key, default \\ nil)

hash_password(password)

hasher_module()

put(struct, key, val)