Add username and email columns to registration tokens

A registration token can now optionally carry the username and/or the email
address the account it is used for has to be registered with. This only adds
the columns and plumbs them through the storage layer and the CLI; nothing
enforces them yet.
This commit is contained in:
Quentin Gliech
2026-10-13 15:30:54 +02:00
parent 14ba102309
commit d765af146d
18 changed files with 358 additions and 30 deletions
+14
View File
@@ -7389,6 +7389,20 @@
"null"
],
"format": "date-time"
},
"username": {
"description": "A username to impose on the registering user. If set, the user cannot\nchoose their own username.",
"type": [
"string",
"null"
]
},
"email": {
"description": "An email address to impose on the registering user. If set, the user\ncannot choose their own email.",
"type": [
"string",
"null"
]
}
}
},