Add support for encrypted second password hashes

This commit is contained in:
Jonas Lochmann
2022-09-12 02:00:00 +02:00
parent f725a7bda3
commit a86a0abb05
50 changed files with 1067 additions and 185 deletions
@@ -221,7 +221,7 @@
"type": "string"
},
"password": {
"$ref": "#/definitions/ParentPassword"
"$ref": "#/definitions/EncryptableParentPassword"
},
"timeZone": {
"type": "string"
@@ -237,7 +237,7 @@
],
"title": "SerializedAddUserAction"
},
"ParentPassword": {
"EncryptableParentPassword": {
"type": "object",
"properties": {
"hash": {
@@ -248,6 +248,9 @@
},
"secondSalt": {
"type": "string"
},
"encrypted": {
"type": "boolean"
}
},
"additionalProperties": false,
@@ -256,7 +259,7 @@
"secondHash",
"secondSalt"
],
"title": "ParentPassword"
"title": "EncryptableParentPassword"
},
"SerializedChangeParentPasswordAction": {
"type": "object",
@@ -721,7 +724,7 @@
"type": "string"
},
"newPassword": {
"$ref": "#/definitions/ParentPassword"
"$ref": "#/definitions/EncryptableParentPassword"
}
},
"additionalProperties": false,