/doc/modules/mod_authentication/resource_logon.html
https://code.google.com/p/zotonic/ · HTML · 99 lines · 83 code · 16 blank · 0 comment · 0 complexity · 0424035e226c81d8529048111d1e2a43 MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>Module resource_logon</title>
- <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
- </head>
- <body bgcolor="white">
- <div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
- <hr>
- <h1>Module resource_logon</h1>
- <ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Log on an user.
- <p>Copyright 2010 Marc Worrell
- Date: 2010-05-07</p>
- <p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
- <h2><a name="description">Description</a></h2>Log on an user. Set optional "rememberme" cookie.
- <h2><a name="index">Function Index</a></h2>
- <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#charsets_provided-2">charsets_provided/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#content_types_provided-2">content_types_provided/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#event-2">event/2</a></td><td>Handle the submit of the logon form, this will be handed over to the
- different authentication handlers.</td></tr>
- <tr><td valign="top"><a href="#get_rememberme_cookie-1">get_rememberme_cookie/1</a></td><td>Check if there is a "rememberme" cookie.</td></tr>
- <tr><td valign="top"><a href="#init-1">init/1</a></td><td></td></tr>
- <tr><td valign="top"><a href="#moved_temporarily-2">moved_temporarily/2</a></td><td>Temporary redirect if we have an automatic log on due to a rememberme cookie or if
- the user was already logged on and we don't have a redirect page.</td></tr>
- <tr><td valign="top"><a href="#previously_existed-2">previously_existed/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#provide_content-2">provide_content/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#reset_rememberme_cookie-1">reset_rememberme_cookie/1</a></td><td>Reset the rememberme cookie.</td></tr>
- <tr><td valign="top"><a href="#resource_exists-2">resource_exists/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#service_available-2">service_available/2</a></td><td></td></tr>
- </table>
- <h2><a name="functions">Function Details</a></h2>
- <h3 class="function"><a name="charsets_provided-2">charsets_provided/2</a></h3>
- <div class="spec">
- <p><tt>charsets_provided(ReqData, Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="content_types_provided-2">content_types_provided/2</a></h3>
- <div class="spec">
- <p><tt>content_types_provided(ReqData, Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="event-2">event/2</a></h3>
- <div class="spec">
- <p><tt>event(X1, Context) -> any()</tt></p>
- </div><p>Handle the submit of the logon form, this will be handed over to the
- different authentication handlers.</p>
- <h3 class="function"><a name="get_rememberme_cookie-1">get_rememberme_cookie/1</a></h3>
- <div class="spec">
- <p><tt>get_rememberme_cookie(Context) -> any()</tt></p>
- </div><p>Check if there is a "rememberme" cookie. If so then return the user id
- belonging to the cookie.</p>
- <h3 class="function"><a name="init-1">init/1</a></h3>
- <div class="spec">
- <p><tt>init(DispatchArgs) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="moved_temporarily-2">moved_temporarily/2</a></h3>
- <div class="spec">
- <p><tt>moved_temporarily(ReqData, Context) -> any()</tt></p>
- </div><p>Temporary redirect if we have an automatic log on due to a rememberme cookie or if
- the user was already logged on and we don't have a redirect page.</p>
- <h3 class="function"><a name="previously_existed-2">previously_existed/2</a></h3>
- <div class="spec">
- <p><tt>previously_existed(ReqData, Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="provide_content-2">provide_content/2</a></h3>
- <div class="spec">
- <p><tt>provide_content(ReqData, Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="reset_rememberme_cookie-1">reset_rememberme_cookie/1</a></h3>
- <div class="spec">
- <p><tt>reset_rememberme_cookie(Context) -> any()</tt></p>
- </div><p>Reset the rememberme cookie.</p>
- <h3 class="function"><a name="resource_exists-2">resource_exists/2</a></h3>
- <div class="spec">
- <p><tt>resource_exists(ReqData, Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="service_available-2">service_available/2</a></h3>
- <div class="spec">
- <p><tt>service_available(ReqData, DispatchArgs) -> any()</tt></p>
- </div>
- <hr>
- <div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
- <p><i>Generated by EDoc, Aug 12 2011, 19:36:11.</i></p>
- </body>
- </html>