Project

General

Profile

Development #29475

patch à do_logout.js local à la prod

Added by Frédéric Péters 5 months ago. Updated 5 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06 Jan 2019
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

(va savoir)

--- mandayejs/do_logout.js    2017-02-12 14:19:42.224826699 +0100
+++ /tmp/do_logout.js    2019-01-06 16:20:33.196569678 +0100
@@ -67,6 +68,7 @@
     var logout = page.evaluate(function(input){
         element = input.logout_locator;
         var logout_link = $(element).length > 0 ? $(element)[0] : $(element);
+        return $(logout_link).length;
         if ($(logout_link).length > 0){
             logout_link.click();
             return true;
@@ -76,6 +78,7 @@

     if (logout == false){
         output['result'] = 'logout failed';
-        mandaye_exit(JSON.stringify(output));
     }
+    output['logout_link_length'] = logout
+    mandaye_exit(JSON.stringify(output));
 });

History

#1 Updated by Serghei Mihai 5 months ago

Pas d'idée. A flinguer.

Also available in: Atom PDF