Commit 1369bc00 by lixinming

no message

parent 8180ba4c
......@@ -33,7 +33,7 @@ export async function login(uscc:string, pwd:string) {
/**
* 首次登录修改密码
* @param uscc 孵化器统一信用代码
* @param pwd 新密码p
* @param pwd 新密码
* @param confirmPwd 确认密码
* @returns
*/
......
......@@ -12,6 +12,7 @@ import { checkReqParam } from '../util/tools';
export function setRouter(httpServer) {
httpServer.post('/fuhuaqi/login', asyncHandler(login));
httpServer.post('/fuhuaqi/login/firstupdate', asyncHandler(login));
/**基础数据 */
httpServer.post('/fuhuaqi/base', asyncHandler(baseInfo));
httpServer.post('/fuhuaqi/mydata', asyncHandler(myDataInfo));
......@@ -134,6 +135,22 @@ async function login(req, res) {
res.success(result);
}
/**
* 孵化器首次登录
* @param req
* @param res
*/
async function firstUpdatePwd(req, res) {
let reqConf = {confirmPwd:'String', pwd:'String', };
let {confirmPwd, pwd} = checkReqParam(reqConf, req.body);
const Uscc = req.headers.uscc;
let result = await userBiz.firstLoginChangePwd(Uscc, pwd, confirmPwd);
res.success(result);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment