MCPcopy Create free account
hub / github.com/DumbWareio/DumbDo / isValidPin

Function isValidPin

server.js:199–201  ·  view source on GitHub ↗
(providedPin)

Source from the content-addressed store, hash-verified

197
198// PIN validation helper
199function isValidPin(providedPin) {
200 return !PIN || (providedPin && secureCompare(providedPin, PIN));
201}
202
203// PIN validation middleware - everything after this requires PIN
204app.use((req, res, next) => {

Callers 1

server.jsFile · 0.85

Calls 1

secureCompareFunction · 0.85

Tested by

no test coverage detected