These are chat archives for Automattic/mongoose

27th
Jul 2015
Cryptic
@xCryptic
Jul 27 2015 17:50
I'm trying to commit this into github with a chat project and it's saying the file name is too long :/
2015-07-27 12:58:54.8334|WARN|thread: 1|StandardUserErrors|Showing user error Failed to create a new commit. GitHub.IO.ProcessException: warning: unable to access 'node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/.gitignore': Filename too long fatal: unable to stat 'node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat/package.json': Filename too long
bruce
@sqram
Jul 27 2015 23:22

I read this article about hashing passwords when storing them: http://blog.mongodb.org/post/32866457221/password-authentication-with-mongoose-part-1

Instead of creating this middleware, couldn't i simply hash the password in the app logic? (ie, not in the model, but when a form is saved, take the plaintext password, hash, update the model)