ソースを参照

Merge pull request #31979 from overleaf/kc-verify-domain-ownership

Add domain verification handling

GitOrigin-RevId: 97e53b93f8e2fa430637fde7d3187a5c54c850d6
Jessica Lawshe 7 ヶ月 前
親
コミット
73c259d55c
1 ファイル変更、5 行追加、0 行削除
  1. 5 0
      services/web/app/src/models/DomainVerification.mjs

+ 5 - 0
services/web/app/src/models/DomainVerification.mjs

@@ -20,6 +20,11 @@ export const DomainVerificationSchema = new Schema(
     verificationAttemptCount: { type: Number, default: 0 },
     groupId: Schema.Types.ObjectId,
     lastVerificationAttemptAt: Date,
+    lastFailureReason: {
+      type: String,
+      enum: ['no_record', 'wrong_token', 'dns_error'],
+      default: null,
+    },
   },
   {
     collection: 'domainVerifications',