Skip to content

Commit 54b1f0f

Browse files
committed
Add TooManySessions violation code
1 parent b728e92 commit 54b1f0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/policy/src/model.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ pub enum Code {
4949

5050
/// The email address is banned.
5151
EmailBanned,
52+
53+
/// The user has reached their session limit.
54+
TooManySessions,
5255
}
5356

5457
impl Code {
@@ -66,6 +69,7 @@ impl Code {
6669
Self::EmailDomainBanned => "email-domain-banned",
6770
Self::EmailNotAllowed => "email-not-allowed",
6871
Self::EmailBanned => "email-banned",
72+
Self::TooManySessions => "too-many-sessions",
6973
}
7074
}
7175
}

0 commit comments

Comments
 (0)