Giter Site home page Giter Site logo

mongoose-email-address-manager's People

Contributors

larron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mongoose-email-address-manager's Issues

Callbacks and saving

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.

Preventing Reserved Email Addresses

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?

Version 0.0.4 (latest) is 404 at npmjs.org

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?

Typeable Verification Codes

Use a smaller and maybe digit only verification code so that a user could type it into an input if required.

Install issue

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.