Skip to content
Snippets Groups Projects
Commit b2bb1ac5 authored by Markus Grigull's avatar Markus Grigull
Browse files

Disable sending user passwords

parent d28e2728
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ var Schema = mongoose.Schema;
// user model
var userSchema = new Schema({
username: { type: String, unique: true, required: true },
password: { type: String, required: true },
password: { type: String, required: true, select: false },
role: { type: String, required: true, default: 'user' },
projects: [{ type: Schema.Types.ObjectId, ref: 'Project', default: [] }],
mail: { type: String, default: "" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment