From 1175ca9773a0b007619991d7262a167d968cb309 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sat, 13 Feb 2021 20:03:52 +0700 Subject: [PATCH] Update system password on each login --- logic/auth.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/logic/auth.js b/logic/auth.js index 3eb0784..53a4018 100644 --- a/logic/auth.js +++ b/logic/auth.js @@ -174,6 +174,10 @@ async function login(user) { deriveUmbrelSeed(user) + // This is only needed temporarily to update hardcoded passwords + // on existing users without requiring them to change their password + setSystemPassword(user.password); + return { jwt: jwt }; } catch (error) {