Merge branch 'ent-6138-credentials-without-identifier-error-message' into 'develop'

Fixed credential store error message on required inputs

See merge request artica/pandorafms!3428
This commit is contained in:
Daniel Rodriguez 2020-09-17 15:17:03 +02:00
commit 8ef5e7cb9f
1 changed files with 5 additions and 0 deletions

View File

@ -571,6 +571,11 @@ class CredentialStore extends Wizard
$error = __('You must specify a username and/or password'); $error = __('You must specify a username and/or password');
} }
if (isset($error)) {
$this->ajaxMsg('error', $error);
exit;
}
// Encrypt content (if needed). // Encrypt content (if needed).
$values = [ $values = [
'identifier' => $identifier, 'identifier' => $identifier,