mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-23 14:46:40 +09:00
spec(Email/Verifymail): MXレコードのドメインにもBANが適用されるように (MisskeyIO#814)
This commit is contained in:
parent
a761b2e6ce
commit
da43ac01a8
@ -304,6 +304,12 @@ export class EmailService {
|
|||||||
reason: 'mx',
|
reason: 'mx',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (json.mx_host?.some(host => this.utilityService.isBlockedHost(meta.bannedEmailDomains, host))) {
|
||||||
|
return {
|
||||||
|
valid: false,
|
||||||
|
reason: 'mx',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
valid: true,
|
valid: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user