mirror of
https://github.com/strapi/strapi.git
synced 2025-10-26 23:51:10 +00:00
Update packages/core/admin/server/controllers/authenticated-user.js
This commit is contained in:
parent
09b83c55f8
commit
bd5a1106e9
@ -24,7 +24,7 @@ module.exports = {
|
||||
const userService = getService('user');
|
||||
const authServer = getService('auth');
|
||||
|
||||
const { currentPassword, ...userInfo } = ctx.request.body;
|
||||
const { currentPassword, ...userInfo } = input;
|
||||
|
||||
if (currentPassword && userInfo.password) {
|
||||
const isValid = await authServer.validatePassword(currentPassword, ctx.state.user.password);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user