diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-07-16 17:48:16 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-07-16 17:48:16 -0400 |
commit | f18be9418b9237acd847eaf71adc034226c54695 (patch) | |
tree | 55d1af22c1b008196eb68eb80f82d4c659259d8a /src/server/authentication/models/user_model.ts | |
parent | 7a4310f95da38cf5de55e487030284157acc58d8 (diff) | |
parent | 2e12b7e348ec842ddc2deb6a47f58b6312f2aa95 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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, |