Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
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
wangpeng
dinky
Commits
b7196e0d
Unverified
Commit
b7196e0d
authored
Mar 28, 2022
by
aiwenmo
Committed by
GitHub
Mar 28, 2022
Browse files
Options
Browse Files
Download
Plain Diff
[Fix-233] [user management] Fix the bug that the user password was in…
[Fix-233] [user management] Fix the bug that the user password was in…
parents
b98b3a89
2c53ee3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
UserController.java
...in/src/main/java/com/dlink/controller/UserController.java
+1
-0
UserServiceImpl.java
...src/main/java/com/dlink/service/impl/UserServiceImpl.java
+0
-3
app.tsx
dlink-web/src/app.tsx
+1
-1
No files found.
dlink-admin/src/main/java/com/dlink/controller/UserController.java
View file @
b7196e0d
...
...
@@ -89,6 +89,7 @@ public class UserController {
@PostMapping
(
"/getOneById"
)
public
Result
getOneById
(
@RequestBody
User
user
)
{
user
=
userService
.
getById
(
user
.
getId
());
user
.
setPassword
(
null
);
return
Result
.
succeed
(
user
,
"获取成功"
);
}
...
...
dlink-admin/src/main/java/com/dlink/service/impl/UserServiceImpl.java
View file @
b7196e0d
...
...
@@ -46,9 +46,6 @@ public class UserServiceImpl extends SuperServiceImpl<UserMapper, User> implemen
if
(
Asserts
.
isNull
(
user
.
getId
()))
{
return
false
;
}
if
(
Asserts
.
isNotNull
(
user
.
getPassword
()))
{
user
.
setPassword
(
SaSecureUtil
.
md5
(
user
.
getPassword
()));
}
return
updateById
(
user
);
}
...
...
dlink-web/src/app.tsx
View file @
b7196e0d
...
...
@@ -29,7 +29,7 @@ export async function getInitialState(): Promise<{
try
{
const
result
=
await
queryCurrentUser
();
const
currentUser
:
API
.
CurrentUser
=
{
name
:
result
.
datas
.
nickname
,
name
:
result
.
datas
.
nickname
||
result
.
datas
.
username
,
avatar
:
result
.
datas
.
avatar
?
result
.
datas
.
avatar
:
'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png'
,
userid
:
result
.
datas
.
username
,
notifyCount
:
0
,
...
...
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