Add Note field to user traits; Enforce max length restrictions on email, firstname, lastname, and note fields

This commit is contained in:
Jason Ertel
2021-10-08 12:39:17 -04:00
parent 62c3afc81d
commit d21dee162d
2 changed files with 12 additions and 5 deletions

View File

@@ -101,6 +101,9 @@ function validatePassword() {
if [[ $len -lt 6 ]]; then
fail "Password does not meet the minimum requirements"
fi
if [[ $len -gt 72 ]]; then
fail "Password is too long (max: 72)"
fi
check_password_and_exit "$password"
}

View File

@@ -12,6 +12,7 @@
"format": "email",
"title": "E-Mail",
"minLength": 6,
"maxLength": 100,
"ory.sh/kratos": {
"credentials": {
"password": {
@@ -25,16 +26,19 @@
},
"firstName": {
"type": "string",
"title": "First Name"
"title": "First Name",
"maxLength": 100
},
"lastName": {
"type": "string",
"title": "Last Name"
"title": "Last Name",
"maxLength": 100
},
"status": {
"note": {
"type": "string",
"title": "Status"
}
"title": "Note",
"maxLength": 100
}
},
"required": [
"email"