16796: Expect password prompt
authorPeter Amstutz <peter.amstutz@curii.com>
Wed, 2 Sep 2020 02:40:57 +0000 (22:40 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Wed, 2 Sep 2020 02:41:14 +0000 (22:41 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

apps/workbench/app/views/virtual_machines/webshell.html.erb

index 89c7c2bb86555e80d3665af8bd2b06a50c27d8e2..735583faec8efd2608843be11272bb817ec0ed99 100644 (file)
@@ -44,7 +44,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
         var trySendToken = function() {
           // change this text when PAM is reconfigured to present a
           // password prompt that we can wait for.
-          if (findText("login:")) {
+          if (findText("assword:")) {
              sh.keysPressed("<%= j Thread.current[:arvados_api_token] %>\n");
              sh.vt100('(sent authentication token)\n');
           } else {
@@ -57,7 +57,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
             sh.keysPressed("<%= j params[:login] %>\n");
             // Make this wait shorter when PAM is reconfigured to
             // present a password prompt that we can wait for.
-            setTimeout(trySendToken, 3000);
+            setTimeout(trySendToken, 200);
           } else {
             setTimeout(trySendLogin, 200);
           }