aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models
diff options
context:
space:
mode:
authormonikahedman <monika_hedman@brown.edu>2019-07-16 14:47:24 -0400
committermonikahedman <monika_hedman@brown.edu>2019-07-16 14:47:24 -0400
commitb49f13d72033ab74bfecea00889fa81c85bfd533 (patch)
tree286cbfde9864c9a46f9501cd2975fb854a0d6f13 /src/server/authentication/models
parent189bb0ffd14fb0b8db0edbe813efe19f143a30fd (diff)
parent98c3a06256d2cbd720b2c193e5aa282c5dc25350 (diff)
Merge branch 'search_virt' of https://github.com/browngraphicslab/Dash-Web into search_virt
Diffstat (limited to 'src/server/authentication/models')
-rw-r--r--src/server/authentication/models/user_model.ts4
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 ee85e1c05..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: string,
+ 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,