mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08:00
Remove verification requirement on contact us form
This commit is contained in:
parent
297db58e68
commit
c55b1e4680
@ -32,10 +32,6 @@ router.post('/contactUs', auth, express.json(), async (req, res, next)=>{
|
||||
if(require('../helpers').subdomain(req) !== 'api')
|
||||
next();
|
||||
|
||||
// check if user is verified
|
||||
if(req.user.email_confirmed)
|
||||
return res.status(400).send({code: 'account_is_not_verified', message: 'Account is not verified'});
|
||||
|
||||
// message is required
|
||||
if(!req.body.message)
|
||||
return res.status(400).send({message: 'message is required'})
|
||||
|
Loading…
Reference in New Issue
Block a user