web interfaces: don't include version number in html, only return it after authentication

second round for issue #322
This commit is contained in:
Mechiel Lukkien
2025-03-29 20:46:53 +01:00
parent eeeabdc6de
commit 3a3a11560e
18 changed files with 217 additions and 35 deletions

View File

@ -53,6 +53,31 @@
"Params": [],
"Returns": []
},
{
"Name": "Version",
"Docs": "Version returns the version, goos and goarch.",
"Params": [],
"Returns": [
{
"Name": "version",
"Typewords": [
"string"
]
},
{
"Name": "goos",
"Typewords": [
"string"
]
},
{
"Name": "goarch",
"Typewords": [
"string"
]
}
]
},
{
"Name": "SetPassword",
"Docs": "SetPassword saves a new password for the account, invalidating the previous\npassword.\n\nSessions are not interrupted, and will keep working. New login attempts must use\nthe new password.\n\nPassword must be at least 8 characters.\n\nSetting a user-supplied password is not allowed if NoCustomPassword is set\nfor the account.",