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

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):

  • presets at the top — a button that switches a bundle of features on, the old "modes";
  • 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, the visitor notice, maintenance, hide from search engines (shared with the Crawlers page), allowed addresses;
  • the environment — how this install runs, with a suggested preset.

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.