Merge "Fixes input validation in angular kepyairs."

This commit is contained in:
Zuul 2018-09-05 23:07:42 +00:00 committed by Gerrit Code Review
commit 11d1e5a40f
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<p translate>
Key Pairs are how you login to your instance after it is launched.
Choose a key pair name you will recognize.
Names may only include alphanumeric characters, spaces, or dashes.
Names may only include alphanumeric characters, spaces, dashes and
underscores.
</p>

View File

@ -50,7 +50,7 @@
"name": {
title: gettext("Key Pair Name"),
type: "string",
pattern: "^[A-Za-z0-9 -]+$"
pattern: "^[A-Za-z0-9 -_]+$"
}
}
};