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

匿名 · 2013年08月30日 · 6643 次阅读
<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: '' },
})
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号