From 3d947ef77bdee3b1fbc6796b73dad0b8821e9d64 Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Wed, 2 Sep 2020 11:20:31 +0200 Subject: [PATCH] Fixed credential store error message on required inputs --- pandora_console/include/class/CredentialStore.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/class/CredentialStore.class.php b/pandora_console/include/class/CredentialStore.class.php index 64d7c7c1a8..adf9d6ed06 100644 --- a/pandora_console/include/class/CredentialStore.class.php +++ b/pandora_console/include/class/CredentialStore.class.php @@ -571,6 +571,11 @@ class CredentialStore extends Wizard $error = __('You must specify a username and/or password'); } + if (isset($error)) { + $this->ajaxMsg('error', $error); + exit; + } + // Encrypt content (if needed). $values = [ 'identifier' => $identifier,