Posts by LuizC • 61 points
5 posts
-
3
votes1
answer54
viewsA: User.findOne() in a collection that is not 'Users'
The answer is simpler than I imagined: async confirmationPost (req, res) { const token_ = req.body.token; await Token.findOne({ token:token_ }, function (err, tokenData) { if (!tokenData) { return…
-
0
votes1
answer54
viewsQ: User.findOne() in a collection that is not 'Users'
I wrote an app that has an email verification logic and is triggered when the user makes the registration. I am using two models in Mongoose: one for users and one for authentication token. In token…
-
2
votes0
answers40
viewsQ: Content of a form field as research parameter
I have a form with the following fields (I will put only one, as an example): <div class="form-group"> <label for="nomeAutor"><i class="zmdi zmdi-account…
-
0
votes4
answers198
viewsA: More than one value for the same appendchild()
The solution that served me was the following: 1) I have created spam for first and last name: let _nomeCompletoAutorTexto = document.createElement("span") 2) The content of this spam is the…
javascriptanswered LuizC 61 -
0
votes4
answers198
viewsQ: More than one value for the same appendchild()
How can I concatenate two values in the same appendchild? For example, transform this li.appendChild(_nomeAutorTexto); li.appendChild(_sobrenomeAutorTexto); therein li.appendChild(_nomeAutorTexto +…
javascriptasked LuizC 61