• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / 2348f9a3-bb55-4215-aa7a-84b0b386afee

pending completion
2348f9a3-bb55-4215-aa7a-84b0b386afee

Pull #2968

circleci

Vincent
fixup! fixup! fixup! Allow scanning for exposures without logging in
Pull Request #2968: Allow scanning for exposures without logging in

282 of 1655 branches covered (17.04%)

Branch coverage included in aggregate %.

74 of 74 new or added lines in 6 files covered. (100.0%)

959 of 4451 relevant lines covered (21.55%)

3.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/controllers/exposure-scan.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import { generateToken } from '../utils/csrf.js'
6
import { guestLayout } from '../views/guestLayout.js'
7
import { exposureScan } from '../views/partials/exposure-scan.js'
8

9
/**
10
 * @type {import('express').RequestHandler}
11
 */
12
const exposureScanPage = (req, res, next) => {
×
13
  if (req.method !== 'GET' || typeof req.query.email !== 'string') {
×
14
    next()
×
15
    return
×
16
  }
17

18
  /**
19
   * @type {ViewPartialData<import('../views/partials/exposure-scan.js').PartialParameters>}
20
   */
21
  const data = {
×
22
    partial: exposureScan,
23
    nonce: res.locals.nonce,
24
    csrfToken: generateToken(res, req)
25
  }
26

27
  res.send(guestLayout(data))
×
28
}
29

30
export { exposureScanPage }
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc