Apache-PageKit
view release on metacpan or search on metacpan
docsrc/reference.xml view on Meta::CPAN
<literal>session_lock_class</literal> and <literal>session_store_class</literal>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
<refentry id="model.api.pkit_auth_credential">
<refnamediv>
<refname>pkit_auth_credential</refname>
<refpurpose>
Verifies login credentials and returns session key
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<synopsis>
sub pkit_auth_credential {
my ($model) = @_;
# in this example, login and passwd are the names of the credential fields
my $login = $model->input('login');
my $passwd = $model->input('passwd');
docsrc/reference.xml view on Meta::CPAN
# create a session key
# your code here.........
return $ses_key;
}
</synopsis>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Verifies the user-supplied credentials and return a session key. The
session key is a string that is stored on the user's computer using cookies.
Often you'll use the user ID and a MD5 hash of a a secret key, user ID, password.
</para>
<para>
Note that the string returned should not contain any commas, spaces, or semi-colons.
</para>
</refsect1>
</refentry>
<refentry id="model.api.pkit_auth_session_key">
<refnamediv>
migration/README view on Meta::CPAN
option in your Config.xml file, you
have to move the attribute(s) from the <GLOBAL> tag to
<SERVER> tag.
7. Login code has been rewriten. To login, you must set the 'pkit_login'
to a true value. In addition, the 'new_credential' option is no longer
supported. Instead, you should make sure that 'require_login' is set to
'no' and perform a pkit_redirect in the model code to a URL that logs
the user in. See newacct2 in eg/Model/MyPageKit/MyModel.pm for an
example of how this should work. In addition, you must rewrite
pkit_auth_credential to take the credentials from the input_param method.
8. <PKIT_COMPONENT> can no longer be set dynamically. If you were using
this feature, please contact me and I'll see what I can do. If there is
sufficient demand, I will put support for this back in.
=============================================================
Migration from 0.94 to 0.95
1. A couple of new configuration options have been added to
Config/Config.xml.
( run in 0.271 second using v1.01-cache-2.11-cpan-4d50c553e7e )