ff : tpac auth porting, part 1
authorBill Erickson <berick@esilibrary.com>
Mon, 28 Oct 2013 14:13:08 +0000 (10:13 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 28 Oct 2013 14:13:08 +0000 (10:13 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm

index 0af9399..b07c8c9 100644 (file)
@@ -394,12 +394,26 @@ sub load_login {
 
     my $response;
     if (!$auth_proxy_enabled) {
-        my $seed = $U->simplereq(
-            'open-ils.auth',
-            'open-ils.auth.authenticate.init', $username);
-        $args->{password} = md5_hex($seed . md5_hex($password));
-        $response = $U->simplereq(
-            'open-ils.auth', 'open-ils.auth.authenticate.complete', $args);
+
+        if (0) {
+            # leaving here for reference for now
+            # any chance of a setting that turns FF on?
+            my $seed = $U->simplereq(
+                'open-ils.auth',
+                'open-ils.auth.authenticate.init', $username);
+            $args->{password} = md5_hex($seed . md5_hex($password));
+            $response = $U->simplereq(
+                'open-ils.auth', 'open-ils.auth.authenticate.complete', $args);
+        } else {
+            # TODO: ff bits
+            my $seed = $U->simplereq(
+                'open-ils.auth',
+                'open-ils.auth.authenticate.init', $username);
+            $args->{password} = md5_hex($seed . md5_hex($password));
+            $response = $U->simplereq(
+                'open-ils.auth', 'open-ils.auth.authenticate.complete', $args);
+        }
+
     } else {
         $args->{password} = $password;
         $response = $U->simplereq(