Current section

Files

Jump to
curator priv templates curator.database_authenticatable.install schema_access.ex
Raw

priv/templates/curator.database_authenticatable.install/schema_access.ex

def find_user_by_email(email) do
query = from u in User, where: u.email == ^email
Repo.one(query)
end