Skip to content

Tag: node.js

Unable to expose a public page referenced in an email to let users reset their password in a Vue JS, Node JS and Mongo db website structure

I’m working on a Vue JS, Node and Mongodb website with user management features. I implemented a “Reset Password” functionality: a user can access his profile page, press the reset password button and this will trigger a node functionaly, which is gonna send him an email containing a URL lin…

How to read and open two different files in nodejs?

I have observed in this code that we can’t open the file after we have readFile. The computer complains about Error [ERR_STREAM_WRITE_AFTER_END]: write after end Of course if I remove the readFile function then this error goes away but I want to understand why this error is occurring even though I am us…