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=ede2f5bff95d2bb792aac47933e3ab00fde6305a;p=scpubgit%2Fstemmaweb.git Initial docs for stemmaweb user model --- diff --git a/lib/stemmaweb/Model/User.pm b/lib/stemmaweb/Model/User.pm index d8f8c91..a987ccd 100644 --- a/lib/stemmaweb/Model/User.pm +++ b/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;