richard.grant/row-update-user-update-password-fix
update existing user password and login fix
This commit is contained in:
parent
26377700bb
commit
2dac471b2f
|
@ -92,7 +92,10 @@ exports.patch = async function(ctx) {
|
||||||
// Creation of a new user goes to the user controller
|
// Creation of a new user goes to the user controller
|
||||||
if (row.tableId === ViewNames.USERS) {
|
if (row.tableId === ViewNames.USERS) {
|
||||||
// the row has been updated, need to put it into the ctx
|
// the row has been updated, need to put it into the ctx
|
||||||
ctx.request.body = row
|
ctx.request.body = {
|
||||||
|
...row,
|
||||||
|
password: ctx.request.body.password
|
||||||
|
}
|
||||||
await usersController.update(ctx)
|
await usersController.update(ctx)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue