From 29edbab43cb1d7876f7df76cf3c6914446409edb Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Sat, 1 Oct 2022 00:53:12 -0400 Subject: [PATCH] Fixed password not referenced in PNID creation on console --- src/services/nnid/routes/people.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/nnid/routes/people.js b/src/services/nnid/routes/people.js index eab9b27..791e9bb 100644 --- a/src/services/nnid/routes/people.js +++ b/src/services/nnid/routes/people.js @@ -99,7 +99,7 @@ router.post('/', ratelimit, deviceCertificateMiddleware, async (request, respons await nexAccount.save({ session }); - const primaryPasswordHash = util.nintendoPasswordHash(password, nexAccount.get('pid')); + const primaryPasswordHash = util.nintendoPasswordHash(person.get('password'), nexAccount.get('pid')); const passwordHash = await bcrypt.hash(primaryPasswordHash, 10); pnid = new PNID({