trilium/src/routes/api/password.js

12 lines
263 B
JavaScript
Raw Normal View History

2017-10-22 09:10:33 +08:00
"use strict";
const changePasswordService = require('../../services/change_password');
2020-06-20 18:31:38 +08:00
function changePassword(req) {
return changePasswordService.changePassword(req.body.current_password, req.body.new_password);
}
module.exports = {
changePassword
2020-06-20 18:31:38 +08:00
};