mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(admin): accept domain entries in the email blocklist (#3129)
This commit is contained in:
1 parent
b54016653b
commit
1abde06824
8 files changed
+106
-15
No files matched your search
@@ -60,7 +60,7 @@ import {
|
||||
SnowflakeType,
|
||||
withOpenApiType,
|
||||
} from '@fluxer/schema/src/primitives/SchemaPrimitives';
|
||||
import {EmailType} from '@fluxer/schema/src/primitives/UserValidators';
|
||||
import {EmailBlocklistEntryType} from '@fluxer/schema/src/primitives/UserValidators';
|
||||
import {schemaMetadata} from '@fluxer/schema/src/SchemaMetadata';
|
||||
import {z} from 'zod';
|
||||
|
||||
@@ -299,7 +299,9 @@ export const BanIpRequest = z.object({
|
||||
export type BanIpRequest = z.infer<typeof BanIpRequest>;
|
||||
|
||||
export const BanEmailRequest = z.object({
|
||||
email: EmailType.describe('Email address to ban'),
|
||||
email: EmailBlocklistEntryType.describe(
|
||||
'Email address to ban, or a domain written as @example.com to ban every address at it and its subdomains',
|
||||
),
|
||||
});
|
||||
|
||||
export type BanEmailRequest = z.infer<typeof BanEmailRequest>;
|
||||
|
||||
Reference in new issue
Block a user