X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FAuthentication%2FStore%2FHtpasswd%2FUser.pm;h=3a800070cb1ebda102b6a47cdbf00be29583d7ea;hb=ad94190ef655d2bc73c321662eb33f4a7d9ba601;hp=a07771d9c8c619705598fb673097d8621ebeeb52;hpb=f3ed9b8405f77d8a75287a5afde95bd3cd9dd156;p=catagits%2FCatalyst-Authentication-Store-Htpasswd.git diff --git a/lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm b/lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm index a07771d..3a80007 100644 --- a/lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm +++ b/lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm @@ -13,6 +13,8 @@ use overload '""' => sub { shift->id }, fallback => 1; sub new { my ( $class, $store, $user ) = @_; + return unless $user; + bless { store => $store, user => $user }, $class; }