mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-30 15:58:16 +09:00
enhance(Email Validation): deep-email-validatorを通ったメアドのみverifymail.ioで確認するように (MisskeyIO#294)
This commit is contained in:
parent
bd265caf65
commit
44c10ea991
@ -171,9 +171,6 @@ export class EmailService {
|
||||
};
|
||||
|
||||
if (meta.enableActiveEmailValidation) {
|
||||
if (meta.enableVerifymailApi && meta.verifymailAuthKey != null) {
|
||||
validated = await this.verifyMail(emailAddress, meta.verifymailAuthKey);
|
||||
} else {
|
||||
validated = await validateEmail({
|
||||
email: emailAddress,
|
||||
validateRegex: true,
|
||||
@ -182,6 +179,9 @@ export class EmailService {
|
||||
validateDisposable: true, // 捨てアドかどうかチェック
|
||||
validateSMTP: false, // 日本だと25ポートが殆どのプロバイダーで塞がれていてタイムアウトになるので
|
||||
});
|
||||
|
||||
if (validated.valid && meta.enableVerifymailApi && meta.verifymailAuthKey != null) {
|
||||
validated = await this.verifyMail(emailAddress, meta.verifymailAuthKey);
|
||||
}
|
||||
} else {
|
||||
validated = { valid: true, reason: null };
|
||||
|
Loading…
Reference in New Issue
Block a user