budibase/packages/server/middleware/routeHandlers/changeMyPassword.js

10 lines
255 B
JavaScript
Raw Normal View History

const StatusCodes = require("../../utilities/statusCodes")
module.exports = async ctx => {
await ctx.instance.authApi.changeMyPassword(
ctx.request.body.currentPassword,
ctx.request.body.newPassword
)
ctx.response.status = StatusCodes.OK
}