From: Brian Cassidy Date: Wed, 24 Oct 2007 20:40:29 +0000 (+0000) Subject: stub docs for auto_create_user and auto_update_user X-Git-Tag: v0.1100~41 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Store-DBIx-Class.git;a=commitdiff_plain;h=67f6319b750daeaa3c80b716e93a131b4cfca9de stub docs for auto_create_user and auto_update_user --- diff --git a/Changes b/Changes index 5c7f3d6..d810017 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Catalyst-Plugin-Authentication-Store-DBIx-Class +0.11 2007-XX-XX + Implemented basic auto_update_user and auto_create_user support + 0.10 2007-07-07 3pm CST Proper handling of missing id_field config (load from primary_key) Throw exception if id_field specified does not exist diff --git a/lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm b/lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm index 989bba2..193490b 100644 --- a/lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm +++ b/lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm @@ -4,14 +4,12 @@ use strict; use warnings; use base qw/Class::Accessor::Fast/; -our $VERSION= "0.10"; - +our $VERSION= "0.11"; BEGIN { __PACKAGE__->mk_accessors(qw/config/); } - sub new { my ( $class, $config, $app ) = @_; @@ -71,13 +69,13 @@ sub user_supports { $self->config->{'store_user_class'}->supports( @_ ); } -sub auto_create { +sub auto_create_user { my( $self, $authinfo, $c ) = @_; my $res = $self->config->{'store_user_class'}->new($self->{'config'}, $c); return $res->auto_create( $authinfo, $c ); } -sub auto_update { +sub auto_update_user { my( $self, $authinfo, $c, $res ) = @_; $res->auto_update( $authinfo, $c ); return $res; @@ -413,6 +411,10 @@ Currently treats $frozenuser as an id and retrieves a user with a matching id. Provides information about what the user object supports. +=item auto_update_user + +=item auto_create_user + =back =head1 NOTES