feat : able to use mutil email
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user