sentinel v2.0.0 Sentinel.Util

Utilities for sentinel to format errors and presence validation

Summary

Functions

Formats errors for sending via the API

Formats the parameters of a request to be used in a query string

Validates the presenced of a given field

Sends unformatted errors via the API

Sends formatted errors via the API

Functions

api_redirect_url(atom)
api_redirect_url(atom, params)
format_errors(errors)

Formats errors for sending via the API

format_params(params)

Formats the parameters of a request to be used in a query string

params_to_ueberauth_auth_struct(params, password_reset_token \\ nil)
presence_validator(field, arg2)

Validates the presenced of a given field

send_error(conn, changeset_error, status \\ 422)

Sends unformatted errors via the API

send_formatted_error(conn, errors, status \\ 422)

Sends formatted errors via the API