guard v0.4.0 Guard.Authenticator exception

Link to this section Summary

Link to this section Functions

Link to this function add_perms(user, perms)
Link to this function authenticated_user!(conn)
Link to this function bump_to_admin(username)
Link to this function change_email(user, email)
Link to this function change_password(user, new_password)
Link to this function clear_pin(user)
Link to this function confirm_email(user, confirmation_token)
Link to this function create_and_confirm_user(user_map)
Link to this function create_user(user_map, extra \\ nil)
Link to this function create_user_by_email(email, extra \\ nil)
Link to this function create_user_by_mobile(mobile, extra \\ nil)
Link to this function create_user_by_username(username, password, extra \\ nil)
Link to this function current_claim_type(conn)
Link to this function current_claims(conn)
Link to this function current_user(conn)
Link to this function drop_admin(username)
Link to this function drop_perm(user, name)
Link to this function generate_access_claim(user)
Link to this function generate_login_claim(user, email \\ nil)
Link to this function generate_password_reset_claim(user)
Link to this function generate_pin(user)
Link to this function get_user_devices(user)
Link to this function has_perms?(user, required_perms)

Check that the given user has all the provider permissions

Examples

iex> Guard.Authenticator.has_perms?(user, %{“admin” => [“read”, “write”]}) false

Link to this function send_confirm_email(user)
Link to this function send_login_email(user)
Link to this function send_welcome_email(user)
Link to this function use_pin(user, pin)