projects
/
catagits/Catalyst-Authentication-Store-Htpasswd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0fed016
)
rt.cpan.org bug 16518
Yuval Kogman [Wed, 25 Jan 2006 13:42:14 +0000 (13:42 +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
ad5d17c
..
78a4ab5
100644
(file)
--- a/
lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm
+++ b/
lib/Catalyst/Plugin/Authentication/Store/Htpasswd/User.pm
@@
-20,7
+20,7
@@
sub new {
sub id {
my $self = shift;
- return $self->user->username;
+ return ( $self->user || return )->username;
}
sub supported_features {