feat: allow admin to restrict the minimum linuxdo trust level to register

This commit is contained in:
Bliod-Cook
2025-08-04 17:19:38 +08:00
parent 10b04416c1
commit 3feeca627c
5 changed files with 79 additions and 53 deletions

View File

@@ -336,6 +336,8 @@ func updateOptionMap(key string, value string) (err error) {
common.LinuxDOClientId = value
case "LinuxDOClientSecret":
common.LinuxDOClientSecret = value
case "LinuxDOMinimumTrustLevel":
common.LinuxDOMinimumTrustLevel, _ = strconv.Atoi(value)
case "Footer":
common.Footer = value
case "SystemName":