Copyright © 2009 Marc Worrell Date: 2009-04-24
Authors: Marc Worrell (marc@worrell.nl).
is_auth/1 | Check if the visitor has been authenticated. |
is_auth_recent/1 | |
is_enabled/2 | Check if the user is enabled, an user is enabled when the rsc is published and within its publication date range. |
logoff/1 | Forget about the user being logged on. |
logon/2 | Logon an user whose id we know. |
logon_from_session/1 | Called after z_context:ensure_session. |
logon_pw/3 | Logon a username/password combination, checks passwords with m_identity. |
is_auth(Context::#context{}) -> bool()
Check if the visitor has been authenticated. Assumes a completely initalized context.
is_auth_recent(Context) -> any()
is_enabled(UserId, Context) -> any()
Check if the user is enabled, an user is enabled when the rsc is published and within its publication date range.
logoff(Context) -> NewContext
Forget about the user being logged on.
logon(UserId, Context) -> any()
Logon an user whose id we know
logon_from_session(Context::#context{}) -> #context{}
Called after z_context:ensure_session. Check if the session contains an authenticated user id. When found then the user_id of the context is set. Also checks any automatic logon methods like "remember me" cookies.
logon_pw(Username, Password, Context) -> {bool(), NewContext}
Logon a username/password combination, checks passwords with m_identity.
Generated by EDoc, Feb 25 2011, 21:14:41.