The :login-redirect, :dashboard, :home, :landing and :registration
settings of :wagoe/user: checked and resolved at boot, read when a user signs in or a
page renders.
The `:login-redirect`, `:dashboard`, `:home`, `:landing` and `:registration` settings of `:wagoe/user`: checked and resolved at boot, read when a user signs in or a page renders.
(dashboard-handler config)The handler to mount at /web/dashboard: nil for :dashboard false, the
configured one, or a redirect to the admin's dashboard (the profile without
the admin).
The handler to mount at /web/dashboard: nil for `:dashboard false`, the configured one, or a redirect to the admin's dashboard (the profile without the admin).
(front-page config)Where / and /web send everyone, or nil to keep the defaults.
Where `/` and `/web` send everyone, or nil to keep the defaults.
(path-for config user login-context)Where user lands after signing in. A function gets the user and
login-context (:ip-address, :user-agent, :request). Its answer that
is not a path on this site — nil included — falls back to the defaults, as
does one that throws: by then the session exists, and a 500 would strand it.
Where `user` lands after signing in. A function gets the user and `login-context` (`:ip-address`, `:user-agent`, `:request`). Its answer that is not a path on this site — nil included — falls back to the defaults, as does one that throws: by then the session exists, and a 500 would strand it.
(prepare config)config with the landing settings checked and the
symbols resolved. Throws :configuration-error on a bad value, so boot fails. The
module wiring calls it once; handlers expect its output.
`config` with the landing settings checked and the symbols resolved. Throws :configuration-error on a bad value, so boot fails. The module wiring calls it once; handlers expect its output.
(registration? config)Whether anyone may create their own account at /web/register. On unless
:registration false.
Whether anyone may create their own account at /web/register. On unless `:registration false`.
(root-routes config)The / route that sends everyone to :landing, for the module's
:static contribution; the platform drops its own / for it. Empty when
:landing is unset.
The `/` route that sends everyone to `:landing`, for the module's `:static` contribution; the platform drops its own `/` for it. Empty when `:landing` is unset.
(with-hooks config hooks)config with the :login-redirect, :login-layout and :profile-layout the auth hooks
settled on, which may be a module's rather than the one config set.
`config` with the `:login-redirect`, `:login-layout` and `:profile-layout` the auth hooks settled on, which may be a module's rather than the one config set.
(wrap-home config)Middleware binding the layouts' home path for each request. Identity when the settings leave it at the default.
Middleware binding the layouts' home path for each request. Identity when the settings leave it at the default.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |