trilium/src/routes/api/password.js

11 lines
274 B
JavaScript
Raw Normal View History

2017-10-22 09:10:33 +08:00
"use strict";
const changePasswordService = require('../../services/change_password');
async function changePassword(req) {
2018-04-02 00:03:21 +08:00
return await changePasswordService.changePassword(req.body.current_password, req.body.new_password);
}
module.exports = {
changePassword
};