From 2b897a64ed2a3983893f879ee064e986e6ae9d82 Mon Sep 17 00:00:00 2001 From: Frank Bergkemper Date: Thu, 7 May 2020 19:20:40 +0200 Subject: [PATCH] webui: add missing default value to fix possible login problems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds a missing default value to a hidden form element. It fixes a possible login problem, which could occur when you send login form data before fetching package update information in the background finished with success or an error. Special thanks goes to Alvaro FlaƱo who reported the issue and also has put some effort into solving it. --- webui/module/Auth/src/Auth/Form/LoginForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/module/Auth/src/Auth/Form/LoginForm.php b/webui/module/Auth/src/Auth/Form/LoginForm.php index 208272f4f2d..638c98ae673 100644 --- a/webui/module/Auth/src/Auth/Form/LoginForm.php +++ b/webui/module/Auth/src/Auth/Form/LoginForm.php @@ -161,7 +161,7 @@ public function __construct($config=null, $dird=null) 'name' => 'bareos_updates', 'type' => 'Zend\Form\Element\Hidden', 'attributes' => array( - 'value' => '', + 'value' => 'false', 'id' => 'bareos_updates' ), )