From: Tomas Doran Date: Fri, 11 Dec 2009 13:39:08 +0000 (+0000) Subject: Fix bug that results in you getting the user back as your object X-Git-Tag: v0.1006~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Store-LDAP.git;a=commitdiff_plain;h=a2f66fa87ed4a57d2433b0aab5553c404830e3c0 Fix bug that results in you getting the user back as your object --- diff --git a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm index b33ce82..e8f29c9 100644 --- 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;