mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
whoops change password works now
This commit is contained in:
parent
63d0053808
commit
94f416bbc4
|
@ -145,7 +145,7 @@ authRoutes.post("/change_password", (req,res) => {
|
||||||
|
|
||||||
let accId = acc.id
|
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.AuthTokens.filter(e => e.account == accId).forEach((v) => {
|
||||||
auth.invalidate(v.token)
|
auth.invalidate(v.token)
|
||||||
|
|
Loading…
Reference in a new issue