Merge 'better_model_integration' into 'trunk'
Tomas Doran [Thu, 10 Dec 2009 17:25:44 +0000 (17:25 +0000)]
r27888@omni (orig r10886):  t0m | 2009-07-15 11:04:29 +0100
Clean up

lib/Catalyst/Authentication/Store/LDAP/User.pm

index de6e036..69d2c33 100644 (file)
@@ -147,7 +147,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 {