Skip to content

Commit

Permalink
webui: add missing default value to fix possible login problems
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fbergkemper committed May 7, 2020
1 parent e1a54b6 commit 2b897a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/module/Auth/src/Auth/Form/LoginForm.php
Expand Up @@ -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'
),
)
Expand Down

0 comments on commit 2b897a6

Please sign in to comment.