mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Add Note field to user traits; Enforce max length restrictions on email, firstname, lastname, and note fields
This commit is contained in:
@@ -101,6 +101,9 @@ function validatePassword() {
|
|||||||
if [[ $len -lt 6 ]]; then
|
if [[ $len -lt 6 ]]; then
|
||||||
fail "Password does not meet the minimum requirements"
|
fail "Password does not meet the minimum requirements"
|
||||||
fi
|
fi
|
||||||
|
if [[ $len -gt 72 ]]; then
|
||||||
|
fail "Password is too long (max: 72)"
|
||||||
|
fi
|
||||||
check_password_and_exit "$password"
|
check_password_and_exit "$password"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"format": "email",
|
"format": "email",
|
||||||
"title": "E-Mail",
|
"title": "E-Mail",
|
||||||
"minLength": 6,
|
"minLength": 6,
|
||||||
|
"maxLength": 100,
|
||||||
"ory.sh/kratos": {
|
"ory.sh/kratos": {
|
||||||
"credentials": {
|
"credentials": {
|
||||||
"password": {
|
"password": {
|
||||||
@@ -25,16 +26,19 @@
|
|||||||
},
|
},
|
||||||
"firstName": {
|
"firstName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "First Name"
|
"title": "First Name",
|
||||||
|
"maxLength": 100
|
||||||
},
|
},
|
||||||
"lastName": {
|
"lastName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Last Name"
|
"title": "Last Name",
|
||||||
|
"maxLength": 100
|
||||||
},
|
},
|
||||||
"status": {
|
"note": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Status"
|
"title": "Note",
|
||||||
}
|
"maxLength": 100
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"email"
|
"email"
|
||||||
|
|||||||
Reference in New Issue
Block a user