mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-22 04:30:56 +03:00
Fixed bug where changing a user's password would change the admin's password
This commit is contained in:
@@ -2901,7 +2901,7 @@ app.post('/api/auth/jwtAuth'
|
||||
, auth_api.returnAuthResponse
|
||||
);
|
||||
app.post('/api/auth/changePassword', optionalJwt, async (req, res) => {
|
||||
let user_uid = req.user.uid;
|
||||
let user_uid = req.body.user_uid;
|
||||
let password = req.body.new_password;
|
||||
let success = await auth_api.changeUserPassword(user_uid, password);
|
||||
res.send({success: success});
|
||||
|
||||
Reference in New Issue
Block a user