projects
/
catagits/Catalyst-Authentication-Store-LDAP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
43ef6c3
)
Fix bug that results in you getting the user back as your object
Tomas Doran [Fri, 11 Dec 2009 13:39:08 +0000 (13:39 +0000)]
lib/Catalyst/Authentication/Store/LDAP/Backend.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
index
b33ce82
..
e8f29c9
100644
(file)
--- a/
lib/Catalyst/Authentication/Store/LDAP/Backend.pm
+++ b/
lib/Catalyst/Authentication/Store/LDAP/Backend.pm
@@
-298,7
+298,7
@@
sub lookup_user {
}
my $usersearch = $ldap->search(@searchopts);
- return if ( $usersearch->is_error );
+ return undef if ( $usersearch->is_error );
my $userentry;
my $user_field = $self->user_field;