Skip to content

Commit

Permalink
update UI validation of username/password to make them optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Schretlen committed Feb 5, 2020
1 parent a8f5f5a commit 2b1b8ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function getActionType(): ActionTypeModel {
)
);
}
if (!action.secrets.user) {
if (!action.secrets.user && action.secrets.password) {
errors.user.push(
i18n.translate(
'xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredHostText',
Expand All @@ -83,7 +83,7 @@ export function getActionType(): ActionTypeModel {
)
);
}
if (!action.secrets.password) {
if (!action.secrets.password && action.secrets.user) {
errors.password.push(
i18n.translate(
'xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredPasswordText',
Expand Down

0 comments on commit 2b1b8ea

Please sign in to comment.