Comments (7)
Nice, could you create a PR with fix?
from vue-express-mongo-boilerplate.
Doesn't seem to happen in your live demo, maybe it's because I don't have a mailer transport configured yet.
from vue-express-mongo-boilerplate.
What kind of version of MongoDB are you using?
Because the account.js:151 this:
let field = err.message.split(".$")[1];
field = field.split(" dup key")[0];
So the err.message should contain '.$' string, but yours is not.
Your Mongo's error message:
'E11000 duplicate key error collection: boilerplate-dev.users index: email_1 dup key: { : "[email protected]" }',
my message (on live demo):
'E11000 duplicate key error index: vemapp.users.$email_1 dup key: { : "[email protected]" }'
from vue-express-mongo-boilerplate.
a fresh install of the last version (3.4.1) on windows 10.
the Windows Server 2008 R2 64-bit and later, without SSL support x64
version.
from vue-express-mongo-boilerplate.
I have the same problem. Changed the above two lines to this:
let field;
if(err.message.includes(".$")) {
field = err.message.split(".$")[1];
}
else if (err.message.includes("index: ")) {
field = err.message.split("index: ")[1];
}
else {
req.flash("error", { msg: req.t("UserSaveError") });
done(err, user);
return
}
Ugly, but it's working :)
from vue-express-mongo-boilerplate.
Sweet. Done :)
from vue-express-mongo-boilerplate.
👍
from vue-express-mongo-boilerplate.
Related Issues (20)
- Error: req.flash() requires sessions HOT 2
- Login error HOT 1
- uglifyjs-webpack-plugin missing
- Require workflow diagram / system architecture HOT 1
- starred for using pug
- Nginx configuration
- close terminal port still in use HOT 2
- Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. Please install 'patch' and try again. HOT 2
- snyk error while running 'npm install'. HOT 1
- After registering logging in with GitHub, get blank screen. (Windows)
- TypeError: validator is not a function HOT 2
- Several outdated dependencies and security issues HOT 3
- docker-compose up error HOT 1
- HELP - i18next
- after CLone npm run dev command HOT 1
- Wildcard instead of GraphQL?
- Tried to download and npm run dev and the application does not start HOT 1
- Live demo down
- yarn install /node install go error
- Vue JS 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-express-mongo-boilerplate.