From ea2506d2c70cbc40616bfb10f9798c391c499d66 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Thu, 6 Nov 2025 08:44:57 +0000 Subject: [PATCH] Add TooManySessions violation code --- crates/policy/src/model.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/policy/src/model.rs b/crates/policy/src/model.rs index 9977d6653..b85170025 100644 --- a/crates/policy/src/model.rs +++ b/crates/policy/src/model.rs @@ -49,6 +49,9 @@ pub enum Code { /// The email address is banned. EmailBanned, + + /// The user has reached their session limit. + TooManySessions, } impl Code { @@ -66,6 +69,7 @@ impl Code { Self::EmailDomainBanned => "email-domain-banned", Self::EmailNotAllowed => "email-not-allowed", Self::EmailBanned => "email-banned", + Self::TooManySessions => "too-many-sessions", } } }