curator v0.3.4 Curator View Source

Link to this section Summary

Link to this section Functions

Link to this function active_for_authentication?(mod, user) View Source

Verify a user is active for authentication.

This will return :ok, or {:error, error}. The first error encountered will be returned, so the module order is important.

Link to this function after_sign_in(mod, conn, resource, opts) View Source

apply aftersign_in to _all modules

Link to this function changeset(mod, fun, changeset, attrs) View Source

Call a changeset on all modules

Similar to an extension, this accumulates a changeset across various implementations

Link to this function current_resource(mod, conn, opts) View Source
Link to this function deliver_email(mod, fun, args) View Source
Link to this function extension(mod, fun, args) View Source

Call an extension on all modules

This provides a way to coordinate actions between the modules, without them knowing about eachother directly. Each module can have verious extensions it broadcasts. The other modules decide if they’ll listen…

Link to this function extension_pipe(mod, fun, args) View Source
Link to this function extension_reduce_while(mod, fun, args) View Source

Apply fun to each module (until one fails). The fun must return :ok, or {:error, error}

TODO: Change this function name…

Link to this function find_user_by_email(mod, email) View Source
Link to this function redirect_after_sign_in(mod, conn) View Source
Link to this function sign_in(mod, conn, resource, opts) View Source
Link to this function sign_out(mod, conn, opts) View Source
Link to this function store_return_to_url(mod, conn) View Source