projects
/
catagits/Catalyst-Authentication-Store-Htpasswd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
e9faac2
)
add a check that user really exists to Store::Htpasswd::User's constructor
Yuval Kogman [Wed, 21 Dec 2005 20:24:10 +0000 (20:24 +0000)]
lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm
b/lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm
index
a07771d
..
3a80007
100644
(file)
--- 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;
}