Module zotonic_site_status

Default Zotonic site, used when no other site can handle the supplied Host.

Copyright © 2011 Marc Worrell <marc@worrell.nl> Date: 2011-12-23

Authors: Marc Worrell (marc@worrell.nl).

Description

Default Zotonic site, used when no other site can handle the supplied Host.

Function Index

init/1
is_peer_allowed/1Check peer address to the system management IP allowlist.
observe_acl_logoff/2Let the user log off, clean up any cached information.
observe_acl_logon/2Let the user log on, this is the moment to start caching information.
observe_auth_validate/2Check the username and password entered.
observe_user_is_enabled/2Check if an user is enabled.
sites_status_observer/3

Function Details

init/1

init(Context::z:context()) -> ok

is_peer_allowed/1

is_peer_allowed(Context::z:context()) -> boolean()

Check peer address to the system management IP allowlist

observe_acl_logoff/2

observe_acl_logoff(Acl_logoff, Context) -> any()

Let the user log off, clean up any cached information.

observe_acl_logon/2

observe_acl_logon(Acl_logon, Context) -> any()

Let the user log on, this is the moment to start caching information.

observe_auth_validate/2

observe_auth_validate(Auth_validate, Context) -> any()

Check the username and password entered

observe_user_is_enabled/2

observe_user_is_enabled(User_is_enabled, Context) -> any()

Check if an user is enabled.

sites_status_observer/3

sites_status_observer(Context::z:context(), SitesStatus::[{atom(), z_sites_manager:site_status()}], SitesManagerContext::term()) -> ok


Generated by EDoc