Add TooManySessions violation code

This commit is contained in:
Olivier 'reivilibre
2025-11-06 08:44:57 +00:00
parent cb5ea26792
commit ea2506d2c7

View File

@@ -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",
}
}
}