Commit 31e46a3d by lixinming

no message

parent e586c340
......@@ -10,7 +10,7 @@ import { BizError } from "../util/bizError";
export async function loginAdminSys(loginId:string, pwd:string) {
let resultInfo = {branch:-1, token:'', userId:'', isAdmin:false};
if (loginId == "admin" || loginId == "admin2") { /**超级管理员 */
if (loginId == "admin" || loginId == "superAdmin") { /**超级管理员 */
let userInfo = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.后台用户表, {loginId}, null);
if (!userInfo || !userInfo.uId) throw new BizError(ERRORENUM.用户不存在, `不存在loginId=${loginId}的用户`);
if (userInfo.pwd != pwd) throw new BizError(ERRORENUM.密码错误);
......
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