Initial docs for stemmaweb user model
[scpubgit/stemmatology.git] / stemmaweb / lib / stemmaweb / Model / User.pm
CommitLineData
d1ba091f 1package stemmaweb::Model::User;
2use strict;
3use warnings;
4use Moose;
5use Text::Tradition::UserStore;
6
7extends 'Catalyst::Model::KiokuDB';
8
9has '+model_class' => ( default => 'Text::Tradition::UserStore' );
10
d7816ff4 11=head1 NAME
12
13stemmaweb::Model::User - User/Auth KiokuDB model for stemmaweb
14
15=head1 SYNOPSIS
16
17 ## CONFIGURATION, in .conf file (this is the default setting)
18 <Model::User>
19 model_class Text::Tradition::UserStore
20 </Model::User>
21
22 <Plugin::Authentication>
23 <default>
24 <credential>
25 class 'Password'
26 password_field 'password'
27 password_type 'self_check'
28 </credential>
29 <store>
30 class 'Model::KiokuDB'
31 model_name 'User'
32 </store>
33 </default>
34 </Plugin::Authentication>
35
36
37=head1 DESCRIPTION
38
39This is the User Model used as a Authentication Store (using
40::Store::Model::KiokuDB) for stemmaweb user authentication.
41
42This separate model allows us to have self-contained user storage,
43which is replaceable. The default uses Text::Tradition::UserStore and
44stores the Users alongside the Traditions.
45
46To replace the source of users for authentication, add the
47configuration shown in the L</SYNOPSIS> to your stemmaweb.conf file,
48and adjust as necessary.
49
d1ba091f 501;