Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
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
ReactWeb5
CivManage
Commits
46fd6d9d
Commit
46fd6d9d
authored
Jan 22, 2025
by
彭俊龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改密码去除显示原始密码
parent
84557baf
Pipeline
#95360
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ChangePasswordModal.jsx
src/pages/userCenter/userManage/ChangePasswordModal.jsx
+6
-6
No files found.
src/pages/userCenter/userManage/ChangePasswordModal.jsx
View file @
46fd6d9d
...
...
@@ -38,7 +38,7 @@ const ChangePasswordModal = props => {
email
:
currentUser
.
email
||
''
,
});
passwordForm
.
setFieldsValue
({
oldPassword
:
currentUser
.
password
,
//
oldPassword: currentUser.password,
newPassword
:
''
,
passwordConfirm
:
''
,
});
...
...
@@ -121,7 +121,7 @@ const ChangePasswordModal = props => {
// 提交-修改密码
const
submitChangePassword
=
()
=>
{
const
oldPassword
=
passwordForm
.
getFieldValue
(
'oldPassword'
);
//
const oldPassword = passwordForm.getFieldValue('oldPassword');
const
newPassword
=
passwordForm
.
getFieldValue
(
'newPassword'
);
const
passwordConfirm
=
passwordForm
.
getFieldValue
(
'passwordConfirm'
);
if
(
...
...
@@ -133,7 +133,7 @@ const ChangePasswordModal = props => {
)
{
updateUserPassword
({
UserId
:
+
currentUser
.
userId
,
OldPassWord
:
oldPassword
,
//
OldPassWord: oldPassword,
NewPassWord
:
encipher
(
newPassword
,
pasType
?
pasType
:
''
).
toUpperCase
(),
})
.
then
(
res
=>
{
...
...
@@ -152,7 +152,7 @@ const ChangePasswordModal = props => {
});
}
passwordForm
.
setFieldsValue
({
oldPassword
:
currentUser
.
password
,
//
oldPassword: currentUser.password,
newPassword
:
''
,
passwordConfirm
:
''
,
});
...
...
@@ -214,9 +214,9 @@ const ChangePasswordModal = props => {
>
<
div
className=
{
styles
.
modalContent
}
>
<
Form
form=
{
passwordForm
}
labelCol=
{
{
span
:
4
}
}
onFieldsChange=
{
changeValue
}
>
<
Form
.
Item
name=
"oldPassword"
label=
"原始密码"
>
{
/*
<Form.Item name="oldPassword" label="原始密码">
<Input disabled />
</
Form
.
Item
>
</Form.Item>
*/
}
<
div
className=
{
styles
.
formBox
}
>
<
Form
.
Item
name=
"newPassword"
...
...
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