diff options
author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-16 13:32:22 -0400 |
---|---|---|
committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-16 13:32:22 -0400 |
commit | 42aa7674b851b8eba132615a2fc8581d77567efe (patch) | |
tree | 3b056e884a0f80e73d2284e0df0f6ee767e120ef /src/server/authentication/models/user_model.ts | |
parent | 52ea2cbd66bd223730bb370470e706bc05f88fa8 (diff) | |
parent | adc70137f01072271672be1b4bf1b823b1b28060 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into presentation-reordering-mohammad
Diffstat (limited to 'src/server/authentication/models/user_model.ts')
-rw-r--r-- | src/server/authentication/models/user_model.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/authentication/models/user_model.ts b/src/server/authentication/models/user_model.ts index fb62de1c8..45fbf23b1 100644 --- a/src/server/authentication/models/user_model.ts +++ b/src/server/authentication/models/user_model.ts @@ -16,7 +16,7 @@ mongoose.connection.on('disconnected', function () { console.log('connection closed'); }); export type DashUserModel = mongoose.Document & { - email: { type: String, unique: true }, + email: String, password: string, passwordResetToken?: string, passwordResetExpires?: Date, @@ -42,7 +42,7 @@ export type AuthToken = { }; const userSchema = new mongoose.Schema({ - email: { type: String, unique: true }, + email: String, password: String, passwordResetToken: String, passwordResetExpires: Date, |