Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyixcx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
yuyixcx
Commits
9970093d
Commit
9970093d
authored
Dec 17, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5454e9a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
serverConfig.xml
serverConfig.xml
+2
-1
enterpriseInfo.ts
src/biz/enterpriseInfo.ts
+7
-2
massageNotice copy.ts
src/biz/massageNotice copy.ts
+0
-0
No files found.
serverConfig.xml
View file @
9970093d
<config>
<port>
9099
</port>
<sign>
xxx90909082fsdahfjosadjfpoiwausjorip2hjklrhn1ioud0u124rx0qwejfokasjfolksaujfoas
</sign>
<dbServer>
http://192.168.0.
105
:40012
</dbServer>
<dbServer>
http://192.168.0.
71
:40012
</dbServer>
</config>
\ No newline at end of file
src/biz/enterpriseInfo.ts
View file @
9970093d
...
...
@@ -225,12 +225,17 @@ export async function changePassword(uId:string, pwd:string, newPwd:string, conf
if
(
!
enterpriseInfo
.
uId
)
throw
new
BizError
(
ERRORENUM
.
数据不存在
);
/**验证当前密码 */
if
(
pwd
!=
enterpriseInfo
.
pwd
)
throw
new
BizError
(
ERRORENUM
.
原密码错误
);
const
encryptedInputPwd
=
getPwdMd5
(
enterpriseInfo
.
uId
,
pwd
);
if
(
enterpriseInfo
.
pwd
!==
encryptedInputPwd
)
{
throw
new
BizError
(
ERRORENUM
.
原密码错误
);
}
// if (pwd != enterpriseInfo.pwd) throw new BizError(ERRORENUM.原密码错误);
if
(
newPwd
!=
confirmPwd
)
throw
new
BizError
(
ERRORENUM
.
密码不一致
);
if
(
newPwd
.
search
(
/^
[
A-Za-z0-9
]{6,18}
$/
)
<
0
)
throw
new
BizError
(
ERRORENUM
.
密码只能由
6
至
18
位字符和数字组成
);
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
企业用户表
,
{
pwd
:
newPwd
},
{
uId
});
let
encryptedInputNewPwd
=
getPwdMd5
(
enterpriseInfo
.
uId
,
newPwd
);
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
企业用户表
,
{
pwd
:
encryptedInputNewPwd
},
{
uId
});
return
{
isSuccess
:
true
};
}
...
...
src/biz/massageNotice copy.ts
deleted
100644 → 0
View file @
5454e9a9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment