reset.js
538 Bytes
/*
* @Author: Targaryen
* @Date: 2017-04-13 10:25:56
* @Last Modified by: Targaryen
* @Last Modified time: 2017-04-13 10:29:26
*/
/* ******************
* 重置密码
********************/
'use strict';
const api = global.yoho.API;
/**
* 重置密码
* @param {*} params
*/
const resetPassword = (params) => {
return api.post('', {
method: '',
oldPassword: params.oldPassword,
newPassword: params.newPassword,
username: params.username
});
};
module.exports = {
resetPassword
};