feat(users): add feature for verify mail address and active account by mail

This commit is contained in:
OldHawk
2017-11-06 15:01:43 +08:00
parent c34ec9736d
commit 6076ec0a1f
14 changed files with 278 additions and 121 deletions

View File

@@ -129,7 +129,7 @@ var UserSchema = new Schema({
},
status: {
type: String,
default: 'normal'
default: 'inactive'
},
vip_start_at: {
type: Date,
@@ -213,6 +213,13 @@ var UserSchema = new Schema({
type: Date,
default: Date.now
},
/* for sing up active */
signUpActiveToken: {
type: String
},
signUpActiveExpires: {
type: Date
},
/* For reset password */
resetPasswordToken: {
type: String