0
Hello, I am developing a feedback system. The person fills in some data, sends and saves in the database. However, for security reasons, I wanted to create a cooldown so that the person only send another feedback after 24 hours for example. I tried to create sessions
, but none that worked properly. Someone has an idea?
Controller:
router.post('/send-feedback', (req, res) => {
const { name, email, description } = req.body
Feedback.create({
client_name: name,
client_email: email,
client_feedback: description
}).then(() => {
req.flash('success', 'Muito obrigado pelo Feedback, é muito importante para mim!')
return res.redirect('/feedback')
})
})```
But like, if the user changes the email? Technically it could flood
– Carlos
Yes, it is always scammable, there is no 100% secure system. , then you leave for a multiple key: email + ip + cookie, and so on.
– William Bruno Rocha Moraes