forked from Yara724/api
Fixed Captcha
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
|
||||
import { HydratedDocument } from "mongoose";
|
||||
|
||||
@Schema({ collection: "captcha-challenges", timestamps: true, versionKey: false })
|
||||
@Schema({
|
||||
collection: "captcha-challenges",
|
||||
timestamps: true,
|
||||
versionKey: false,
|
||||
})
|
||||
export class CaptchaChallenge {
|
||||
@Prop({ required: true, unique: true, index: true })
|
||||
captchaId: string;
|
||||
|
||||
@Prop({ required: true })
|
||||
answerHash: string;
|
||||
@Prop()
|
||||
answerHash?: string;
|
||||
|
||||
@Prop({ required: true })
|
||||
image: string;
|
||||
|
||||
Reference in New Issue
Block a user