MongoDB 在 Mongoose Validate 里验证用户输入的密码是否一样,怎么写?

Unknow user · August 30, 2013 · 6661 hits
<input type="password" name="password" placeholder="密码"> 
<input type="password" name="password_confirmation" placeholder="密码确认">



var UserSchema = new Schema({
  email: { type: String, default: ''},
  username: { type: String, default: '' },
  hashed_password: { type: String, default: '' },
})
No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.