Liking cljdoc? Tell your friends :D

wagoe.user.shell.landing

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.
raw docstring

dashboard-handlerclj

(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).
sourceraw docstring

front-pageclj

(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.
sourceraw docstring

path-forclj

(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.
sourceraw docstring

prepareclj

(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.
sourceraw docstring

registration?clj

(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`.
sourceraw docstring

root-routesclj

(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.
sourceraw docstring

with-hooksclj

(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.
sourceraw docstring

wrap-homeclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close