PhoenixKitWeb.Live.Settings.WebsiteAccess (phoenix_kit v2.29.1)

Copy Markdown View Source

Website access — the settings page where every way of controlling who sees this site lives, for now (the boss decides later where each piece belongs):

  • the features, each a checkbox with an explanation and, where it needs one, its own area: the password gate (password, lockout, access link, the history of tries), the redirect to production, maintenance, hide from search engines (shared with the Crawlers page), allowed addresses.

Every change goes through PhoenixKit.WebsiteAccess and lands in the settings history with this admin as the actor.

Summary

Functions

handle_event(binary, arg2, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

handle_info(arg1, socket)

Callback implementation for Phoenix.LiveView.handle_info/2.

handle_params(params, url, socket)

Callback implementation for Phoenix.LiveView.handle_params/3.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.