Archived
1
0

cli: hashedPassword -> hashed-password (#2454)

Capital letters in the CLI are evil.

cc @code-asher
This commit is contained in:
Anmol Sethi
2020-12-18 12:20:38 -05:00
committed by GitHub
parent 386af14a77
commit 60c270aef5
7 changed files with 14 additions and 14 deletions

View File

@ -68,8 +68,8 @@ router.post("/", async (req, res) => {
}
if (
req.args.hashedPassword
? safeCompare(hash(req.body.password), req.args.hashedPassword)
req.args["hashed-password"]
? safeCompare(hash(req.body.password), req.args["hashed-password"])
: req.args.password && safeCompare(req.body.password, req.args.password)
) {
// The hash does not add any actual security but we do it for