Browse Source
Merge pull request #1149 from RichardGrant-93/patch-1
richard.grant/row-update-user-update-password-fix
gh-pages
Martin McKeaveney
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
packages/server/src/api/controllers/row.js
|
|
|
@ -92,7 +92,10 @@ exports.patch = async function(ctx) { |
|
|
|
// Creation of a new user goes to the user controller
|
|
|
|
if (row.tableId === ViewNames.USERS) { |
|
|
|
// 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) |
|
|
|
return |
|
|
|
} |
|
|
|
|