вторник, 21 июня 2016 г.

This isMogified('password') is not function

The problem might be related to the fact that you're using ES6 arrow syntax instead of a plain function as the callback. ES6 arrow functions change the semantics of the this keyword, which might affect how mongoose handles the callback internally.
http://stackoverflow.com/questions/36794709/inside-schema-method-scopes-this-is-empty-in-mongoose-4-4-12

четверг, 25 февраля 2016 г.

vaadin/expense-manager-demo. FAQ.

URL

NPM modules:
bcrypt.js - Lib to help you hash passwords.

body-parser.js - Node.js body parsing middleware.

cors.js - Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the resource originated.

jsonwebtoken.js - An implementation of JSON Web Tokens.

moment.js - A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.

morgan.js - HTTP request logger middleware for node.js

multer.js - Multer is a node.js middleware for handling multipart/form-data, which is primarily used for uploading files. It is written on top of busboy for maximum efficiency.