mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-04-24 14:59:39 -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:
commit
20d70ced42
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user