cfdp / opeka

Counseling chat service, built for providing anonymous help to young people at risk
https://curachat.com
GNU General Public License v3.0
10 stars 6 forks source link

Authentication callback is invoked multiple times #88

Closed alex-bukach closed 7 years ago

alex-bukach commented 7 years ago

The user authentication callback is called multiple times in module.exports.authenticate() function in user.js file, and hence when a submission is saved, it is saved multiple times. See the code screenshot below, each usage is highlighted.

2017-04-19_1518

alex-bukach commented 7 years ago

@benjamin-dk fixed in #89.