larron / mongoose-email-address-manager Goto Github PK
View Code? Open in Web Editor NEWManage multiple email addresses per user (or other model/doc) with this mongoose schema plugin.
Manage multiple email addresses per user (or other model/doc) with this mongoose schema plugin.
There are some functions that set values on the model and then do a save. In the case that we do not want to automatically do a save we should check for a callback. We will assume that no callback means no save.
index.js#L11 <- package.json#L47
You do know that devDependencies are not installed when installing a module as dependency?
Quick question regarding this system. How would I avoid the following conflict?
USER A:
Email 1: [email protected] (valid, he owns it)
Email 2: [email protected] (he does not own it)
USER B:
Email 1: [email protected] (valid, he owns it)
If User A signs up first and adds [email protected] to his account (but doesn't verify), and then User B signs up with [email protected], then a query of findOneByEmail
will return User A, leading us to believe that the email address has already been taken. Is there a recommended way of handling this scenario?
Email addresses and email objects should work as args in all functions.
Setup indexing option
Hi, cool plugin, thanks.
When I do "npm install mongoose-email-address-manager", it currently fails for me with a 404 not found error:
> npm install mongoose-email-address-manager
...
npm http GET https://registry.npmjs.org/mongoose-email-address-manager/-/mongoose-email-address-manager-0.0.4.tgz
npm http 404 https://registry.npmjs.org/mongoose-email-address-manager/-/mongoose-email-address-manager-0.0.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/mongoose-email-address-manager/-/mongoose-email-address-manager-0.0.4.tgz
npm ERR! Error: 404 Not Found
...
Requesting version 0.0.3 works properly.
I wonder, do you need to re-do npm publish for 0.0.4?
Use a smaller and maybe digit only verification code so that a user could type it into an input if required.
Hi Larron, thanks for a great package. I am having trouble installing it. Please advise.
[root]# npm install mongoose-email-address-manager
npm http GET https://registry.npmjs.org/mongoose-email-address-manager
npm http 304 https://registry.npmjs.org/mongoose-email-address-manager
npm http GET https://registry.npmjs.org/mongoose-email-address-manager/-/mongoose-email-address-manager-0.0.4.tgz
npm http 404 https://registry.npmjs.org/mongoose-email-address-manager/-/mongoose-email-address-manager-0.0.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/mongoose-email-address-manager/-/mongoose-email-address-manager-0.0.4.tgz
npm ERR! Error: 404 Not Found
npm ERR! at WriteStream. (/usr/lib/node_modules/npm/lib/utils/fetch.js:57:12)
npm ERR! at WriteStream.EventEmitter.emit (events.js:117:20)
npm ERR! at fs.js:1596:14
npm ERR! at /usr/lib/node_modules/graceful-fs/graceful-fs.js:103:5
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR! System Linux 2.6.32-431.1.2.0.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "mongoose-email-address-manager"
npm ERR! cwd /home/www-data/node
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/www-data/node/npm-debug.log
npm ERR! not ok code 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.