sentinel v2.0.0 Sentinel.Session

Virtual Session data model allowing us to have session changesets and HTML validations

Summary

Functions

Creates a changeset based on the model and params

Changeset validation ensuring that the user has either the username or email address defined

Functions

changeset(struct, params \\ %{})

Creates a changeset based on the model and params.

If no params are provided, an invalid changeset is returned with no validation performed.

email_or_username_required(changeset)

Changeset validation ensuring that the user has either the username or email address defined