message: added code to check if attack is performed
diff: @@ -51,10 +51,30 @@ router.post('/', async (req: Request<{}, {}, DataErasureRequestParams>, res: Res
  UserId: loggedInUser.data.id,
  deletionRequested: true
  })
  - res.clearCookie('token')
  +
  + if (req.body.layout !== undefined) {
  + const conditions: boolean = (req.body.layout.includes('ftp') || req.body.layout.includes('ctf.key') || req.body.layout.includes('encryptionkeys'))
  + if (conditions === false) {
  + res.render('dataErasureResult', {
  + ...req.body
  + }, (error, html) => {
  + if (html === undefined) {
  + next(new Error('No Such file exist'))
  + }else {
  + const sendlfrResponse: string = JSON.stringify(html).slice(0,100) + '......'
  + res.send(sendlfrResponse)
  + }
  + })
  + }else {
  + next(new Error('File access not allowed'))
  + }
  + }
  + else {
  res.render('dataErasureResult', {
  ...req.body
  })
  + }
  + res.clearCookie('token')
  } catch (error) {
  next(error)
  }
  