From: Jess Robinson Date: Wed, 9 May 2012 10:06:29 +0000 (+0000) Subject: Initial docs for stemmaweb user model X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d7816ff4b13bf8c5732b2659ef8772a1ab963037;p=scpubgit%2Fstemmatology.git Initial docs for stemmaweb user model --- diff --git a/stemmaweb/lib/stemmaweb/Model/User.pm b/stemmaweb/lib/stemmaweb/Model/User.pm index d8f8c91..a987ccd 100644 --- a/stemmaweb/lib/stemmaweb/Model/User.pm +++ b/stemmaweb/lib/stemmaweb/Model/User.pm @@ -8,4 +8,43 @@ extends 'Catalyst::Model::KiokuDB'; has '+model_class' => ( default => 'Text::Tradition::UserStore' ); +=head1 NAME + +stemmaweb::Model::User - User/Auth KiokuDB model for stemmaweb + +=head1 SYNOPSIS + + ## CONFIGURATION, in .conf file (this is the default setting) + + model_class Text::Tradition::UserStore + + + + + + class 'Password' + password_field 'password' + password_type 'self_check' + + + class 'Model::KiokuDB' + model_name 'User' + + + + + +=head1 DESCRIPTION + +This is the User Model used as a Authentication Store (using +::Store::Model::KiokuDB) for stemmaweb user authentication. + +This separate model allows us to have self-contained user storage, +which is replaceable. The default uses Text::Tradition::UserStore and +stores the Users alongside the Traditions. + +To replace the source of users for authentication, add the +configuration shown in the L to your stemmaweb.conf file, +and adjust as necessary. + 1;