File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 44 "dependencies" : {
55 "express" : " ~3.4.3" ,
66 "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) { %>,
98 "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) { %>,
1312 "ejs" : " ~0.8.4" <% } %>
1413 },
1514 "devDependencies" : {
2423 "grunt-contrib-copy" : " ~0.4.1" ,
2524 "grunt-contrib-cssmin" : " ~0.7.0" ,
2625 "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" ,
2927 "grunt-contrib-jshint" : " ~0.7.1" ,
3028 "grunt-contrib-uglify" : " ~0.2.0" ,
3129 "grunt-contrib-watch" : " ~0.5.2" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ angular.module('<%= scriptAppName %>')
2525 // Update validity of form fields that match the mongoose errors
2626 angular . forEach ( err . errors , function ( error , field ) {
2727 form [ field ] . $setValidity ( 'mongoose' , false ) ;
28- $scope . errors [ field ] = error . type ;
28+ $scope . errors [ field ] = error . message ;
2929 } ) ;
3030 } ) ;
3131 }
You can’t perform that action at this time.
0 commit comments