Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add root password validation regex for Azure dialog #12967

Merged
merged 3 commits into from
Dec 5, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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