UNPKG
captcha-plus
Version:
latest (2.5.2)
2.5.2
2.5.1
2.5.0
2.0.0
0.0.1
Best Captcha Ever!
captcha-plus
/
module
/
check.js
13 lines
(10 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
fs =
require
(
"fs"
);
const
db =
require
(
"../utils/db.js"
);
module
.
exports
=
async
function
(
id,code
) {
let
check =
false
;
let
c = db.
get
(id);
if
(c == code){ check =
true
; }
return
await
check; };