File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 4
4
"dependencies" : {
5
5
"express" : " ~3.4.3" ,
6
6
"lodash" : " ~2.4.1" <% if (mongo) { %>,
7
- "mongoose" : " ~3.5.5" <% } %><% if (mongoPassportUser) { %>,
8
- "mongoose-unique-validator" : " ~0.3.0" ,
7
+ "mongoose" : " ~3.8.8" <% } %><% if (mongoPassportUser) { %>,
9
8
"connect-mongo" : " ~0.4.0" ,
10
- "passport" : " latest " ,
11
- "passport-local" : " latest " <% } %><% if (jade) { %>,
12
- "jade" : " latest " <% } %><% if (!jade) { %>,
9
+ "passport" : " ~0.2.0 " ,
10
+ "passport-local" : " ~0.1.6 " <% } %><% if (jade) { %>,
11
+ "jade" : " ~1.2.0 " <% } %><% if (!jade) { %>,
13
12
"ejs" : " ~0.8.4" <% } %>
14
13
},
15
14
"devDependencies" : {
24
23
"grunt-contrib-copy" : " ~0.4.1" ,
25
24
"grunt-contrib-cssmin" : " ~0.7.0" ,
26
25
"grunt-contrib-htmlmin" : " ~0.1.3" ,
27
- "jpegtran-bin" : " 0.2.0" ,
28
- "grunt-contrib-imagemin" : " ~0.3.0" ,
26
+ "grunt-contrib-imagemin" : " ~0.5.0" ,
29
27
"grunt-contrib-jshint" : " ~0.7.1" ,
30
28
"grunt-contrib-uglify" : " ~0.2.0" ,
31
29
"grunt-contrib-watch" : " ~0.5.2" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ angular.module('<%= scriptAppName %>')
25
25
// Update validity of form fields that match the mongoose errors
26
26
angular . forEach ( err . errors , function ( error , field ) {
27
27
form [ field ] . $setValidity ( 'mongoose' , false ) ;
28
- $scope . errors [ field ] = error . type ;
28
+ $scope . errors [ field ] = error . message ;
29
29
} ) ;
30
30
} ) ;
31
31
}
You can’t perform that action at this time.
0 commit comments