Client-side required password and email fields

This commit is contained in:
Sahat Yalkabov
2013-12-05 23:12:43 -05:00
parent 3ecd3ad148
commit 1ddd639592
3 changed files with 10 additions and 13 deletions

View File

@ -2,7 +2,7 @@ var mongoose = require('mongoose'),
bcrypt = require('bcrypt');
var userSchema = new mongoose.Schema({
username: { type: String, unique: true },
username: { type: String, index: true, unique: true },
email: String,
name: String,
password: String,