Skip to content

Commit

Permalink
Merge pull request #853 from bareos/dev/fbergkemper/master/bug-0001096
Browse files Browse the repository at this point in the history
webui: provide a better error message on login failure
  • Loading branch information
fbergkemper committed Jun 28, 2021
2 parents 8458ba3 + 471fa27 commit ebcb80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webui/module/Auth/src/Auth/Controller/AuthController.php
Expand Up @@ -5,7 +5,7 @@
* bareos-webui - Bareos Web-Frontend
*
* @link https://github.com/bareos/bareos for the canonical source repository
* @copyright Copyright (c) 2013-2020 Bareos GmbH & Co. KG (http://www.bareos.org/)
* @copyright Copyright (c) 2013-2021 Bareos GmbH & Co. KG (http://www.bareos.org/)
* @license GNU Affero General Public License (http://www.gnu.org/licenses/)
*
* This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -102,7 +102,7 @@ public function loginAction()
$this->bsock->set_user_credentials($username, $password);

if(!$this->bsock->connect_and_authenticate()) {
$err_msg = "Sorry, can not authenticate. Wrong username and/or password.";
$err_msg = "Sorry, cannot authenticate. Wrong username, password or SSL/TLS handshake failed.";
return $this->createNewLoginForm($form, $multi_dird_env, $err_msg, $this->bsock);
}

Expand Down

0 comments on commit ebcb80a

Please sign in to comment.