Merge pull request #190 from PretendoNetwork/fix/unique-email-code
Some checks failed
Build and Publish Docker Image / Build and Publish Docker Image (amd64) (push) Has been cancelled
Build and Publish Docker Image / Build and Publish Docker Image (arm64) (push) Has been cancelled

Remove unique constraint from 6 digit email code
This commit is contained in:
William Oldham 2025-06-23 20:08:27 +01:00 committed by GitHub
commit 20d70ced42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,10 +90,7 @@ const PNIDSchema = new Schema<IPNID, PNIDModel, IPNIDMethods>({
},
devices: [DeviceSchema],
identification: { // * user identification tokens
email_code: {
type: String,
unique: true
},
email_code: String,
email_token: {
type: String,
unique: true
@ -290,4 +287,4 @@ PNIDSchema.method('clearPermission', function clearPermission(flag: PNIDPermissi
this.permissions &= ~flag;
});
export const PNID = model<IPNID, PNIDModel>('PNID', PNIDSchema);
export const PNID = model<IPNID, PNIDModel>('PNID', PNIDSchema);