whoops change password works now

This commit is contained in:
May 2023-02-28 20:26:09 -08:00
parent 63d0053808
commit 94f416bbc4

View file

@ -145,7 +145,7 @@ authRoutes.post("/change_password", (req,res) => {
let accId = acc.id
Accounts.password.set(accId,req.body.password)
Accounts.password.set(accId,body.password)
auth.AuthTokens.filter(e => e.account == accId).forEach((v) => {
auth.invalidate(v.token)