Преглед изворни кода

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

Add domain verification handling

GitOrigin-RevId: 97e53b93f8e2fa430637fde7d3187a5c54c850d6
Jessica Lawshe пре 6 месеци
родитељ
комит
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 },
     verificationAttemptCount: { type: Number, default: 0 },
     groupId: Schema.Types.ObjectId,
     groupId: Schema.Types.ObjectId,
     lastVerificationAttemptAt: Date,
     lastVerificationAttemptAt: Date,
+    lastFailureReason: {
+      type: String,
+      enum: ['no_record', 'wrong_token', 'dns_error'],
+      default: null,
+    },
   },
   },
   {
   {
     collection: 'domainVerifications',
     collection: 'domainVerifications',