aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/user_model.ts
diff options
context:
space:
mode:
authorandrewdkim <adkim414@gmail.com>2019-07-19 11:21:47 -0400
committerandrewdkim <adkim414@gmail.com>2019-07-19 11:21:47 -0400
commite453e7010def252b6cc10ad49d64708767c5589b (patch)
tree4353a4be5495acd61d813066d001e2b12da7d207 /src/server/authentication/models/user_model.ts
parent9cad9abcf164c7d81b8debf4aa2639d83edd227b (diff)
parent8854d3277541a67aef4187b5d3592bea5a7fcfa2 (diff)
merge from master
Diffstat (limited to 'src/server/authentication/models/user_model.ts')
-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,