18995: add missing <!DOCTYPE>
[arvados.git] / apps / workbench / app / views / virtual_machines / webshell.html.erb
index 89c7c2bb86555e80d3665af8bd2b06a50c27d8e2..d4f2cd04070fc5f8b5b1c5f54e5627ae322bf473 100644 (file)
@@ -2,7 +2,9 @@
 
 SPDX-License-Identifier: AGPL-3.0 %>
 
-<html>
+<!DOCTYPE html>
+<html lang="en">
+  <head>
     <title><%= @object.hostname %> / <%= Rails.configuration.Workbench.SiteName %></title>
     <link rel="stylesheet" href="<%= asset_path 'webshell/styles.css' %>" type="text/css">
     <style type="text/css">
@@ -44,7 +46,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 +59,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);
           }