[pbs-devel] [PATCH proxmox 4/6] pbs-api-types: add REGENERATE_TOKEN_SCHEMA

Hannes Laimer h.laimer at proxmox.com
Thu Mar 20 14:57:46 CET 2025


Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
 pbs-api-types/src/user.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pbs-api-types/src/user.rs b/pbs-api-types/src/user.rs
index 42f41266..8b63d6c8 100644
--- a/pbs-api-types/src/user.rs
+++ b/pbs-api-types/src/user.rs
@@ -18,6 +18,12 @@ pub const EXPIRE_USER_SCHEMA: Schema = IntegerSchema::new(
 .minimum(0)
 .schema();
 
+pub const REGENERATE_TOKEN_SCHEMA: Schema = BooleanSchema::new(
+    "Regenerate token secret while keeping permissions.",
+)
+.default(false)
+.schema();
+
 pub const FIRST_NAME_SCHEMA: Schema = StringSchema::new("First name.")
     .format(&SINGLE_LINE_COMMENT_FORMAT)
     .min_length(2)
-- 
2.39.5





More information about the pbs-devel mailing list