From 3fa2c2d78a37737c3c3191b7c8b9df7c07bd3d87 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Mon, 16 Sep 2019 11:24:55 +0200
Subject: [PATCH] Specify button as a submit button

Apparently, IE does not mark buttons as submit buttons when type is missing by default, making it impossible to submit a form.

This resolves #908.
---
 modules/core/templates/loginuserpass.tpl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/core/templates/loginuserpass.tpl.php b/modules/core/templates/loginuserpass.tpl.php
index a8b0fe60b..7dbeab9ad 100644
--- a/modules/core/templates/loginuserpass.tpl.php
+++ b/modules/core/templates/loginuserpass.tpl.php
@@ -168,7 +168,7 @@ if ($this->data['errorcode'] !== null) {
             <tr id="submit">
                 <td class="loginicon"></td><td></td>
                 <td>
-                    <button id="submit_button" class="btn" tabindex="6">
+                    <button id="submit_button" class="btn" tabindex="6" type="submit">
                         <?php echo $this->t('{login:login_button}'); ?>
                     </button>
                 </td>
-- 
GitLab