node-email-verification icon indicating copy to clipboard operation
node-email-verification copied to clipboard

Temporary user model not defined. Either you forgotto generate one or you did not predefine one

Open Hanzofm opened this issue 8 years ago • 2 comments

I'm reciving this error from the library.

The temporary model, temporary_users is already created on mongodb but the error still showing

configured: true generated temp user model: true

Messages from the library is showed always

Any idea?

Hanzofm avatar Mar 28 '17 09:03 Hanzofm

hello, can you please include your code

frankcash avatar Mar 29 '17 01:03 frankcash

@frankcash I am getting this exact same error, and I can link to you my repo: https://github.com/mmarovich/politics-react/tree/emailVerify

Here I have put everything inside of the server.js to get it to work, but I had originally had all of the code separated into a nev folder, which is still there, but not being used. I tried to model it after your code here.

Edit As it turns out I was defining nev twice. Once in the server.js and another in the routes. This was causing some undesired default behavior.

mmarovich avatar Jun 01 '17 16:06 mmarovich