Fixed credential store error message on required inputs

This commit is contained in:
Luis Calvo 2020-09-02 11:20:31 +02:00
parent ba681816c1
commit 3d947ef77b

View File

@ -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,