mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-08-26 12:55:48 -05:00
Merge pull request #190 from PretendoNetwork/fix/unique-email-code
Remove unique constraint from 6 digit email code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user