From 4a188f621902737354b876430ac4bcb11b269657 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 27 Jun 2017 15:47:00 -0600 Subject: [PATCH] Fix VM password regex. --- content/miq_dialogs/miq_provision_azure_dialogs_template.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/miq_dialogs/miq_provision_azure_dialogs_template.yaml b/content/miq_dialogs/miq_provision_azure_dialogs_template.yaml index 73a0757c..0dcb0e02 100644 --- a/content/miq_dialogs/miq_provision_azure_dialogs_template.yaml +++ b/content/miq_dialogs/miq_provision_azure_dialogs_template.yaml @@ -360,8 +360,8 @@ :root_password: :description: Password :required_method: :validate_regex - :required_regex: !ruby/regexp /[(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[\W\D].*?]{12,72}$/ - :required_regex_fail_details: The password must be 12-72 characters, contain at least one lowercase English character, one uppercase English character, and one number. + :required_regex: !ruby/regexp /(?=.{12,72})((?=.*\d)(?=.*[a-z])(?=.*[A-Z])|(?=.*\d)(?=.*[a-zA-Z])(?=.*[\W_])|(?=.*[a-z])(?=.*[A-Z])(?=.*[\W_])).*/ + :required_regex_fail_details: The password must be 12-72 characters, and have 3 of the following - one lowercase character, one uppercase character, one number and one special character. :required: true :display: :edit :data_type: :string