Change to actual Detach extension
Tomas Doran [Wed, 14 Dec 2011 06:56:44 +0000 (06:56 +0000)]
lib/Catalyst/Authentication/Realm/Progressive.pm

index f5fada8..0a9bbd9 100644 (file)
@@ -146,7 +146,7 @@ sub authenticate {
             $auth_obj = $realm->authenticate( $c, $auth );
         }
         catch {
-            if ( blessed($_) && $_->isa('Catalyst::Exception::Detach') ) {
+            if ( $_ eq $Catalyst::DETACH ) {
                 $should_detach = 1;
             }
             else {