Skip to content

Commit

Permalink
Merge pull request #12967 from djberg96/service_dialog_root_password
Browse files Browse the repository at this point in the history
Add root password validation regex for Azure dialog
  • Loading branch information
gmcculloug authored Dec 5, 2016
2 parents 556c643 + 28210c1 commit 3fe2410
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def set_or_default_hardware_field_values(_vm)
end

def update_field_visibility
show_dialog(:customize, :show, "disabled")
show_dialog(:customize, :show, "enabled")
super(:force_platform => 'linux')
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,14 @@
:data_type: :string
: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: true
:display: :edit
:data_type: :string
:min_length: 12
:max_length: 72
:hostname:
:description: Host Name
:required: false
Expand Down

0 comments on commit 3fe2410

Please sign in to comment.