Clean up
Tomas Doran [Wed, 15 Jul 2009 10:04:29 +0000 (10:04 +0000)]
lib/Catalyst/Authentication/Store/LDAP/User.pm

index 527ee47..ba18dab 100644 (file)
@@ -145,7 +145,9 @@ sub check_password {
             $self->roles($ldap);
         }
         # Stash a closure which can be used to retrieve the connection in the users context later.
-        $self->_ldap_connection( sub { $self->store->ldap_bind( undef, $self->ldap_entry->dn, $password ) } );
+        $self->_ldap_connection( sub {
+            $self->store->ldap_bind( undef, $self->ldap_entry->dn, $password )
+        });
         return 1;
     }
     else {