feat : able to use mutil email
CI / Verify (push) Successful in 54s
CI / Build immutable images and deploy (push) Has been skipped

This commit is contained in:
2026-08-29 08:18:21 +00:00 Unverified
parent 659a57fb4a
commit 6a932baa98
6 changed files with 29 additions and 6 deletions
+15
View File
@@ -23,6 +23,21 @@ describe("admin authorization", () => {
expect(isConfiguredAdminEmail(verified.email, undefined)).toBe(false);
});
it("supports a comma-separated administrator email list", () => {
expect(
isConfiguredAdminEmail(
"[email protected]",
"[email protected], [email protected]",
),
).toBe(true);
expect(
isConfiguredAdminEmail(
"[email protected]",
"[email protected], [email protected]",
),
).toBe(false);
});
it("allows only credential registration for the configured administrator", () => {
expect(
isAllowedAdminRegistration(