Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
pipeline-network
Commits
e1ab41fe
Commit
e1ab41fe
authored
Jul 23, 2026
by
wujipeng
Browse files
优化
parent
94e6fd8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/example/pipelinenetwork/controller/LoginController.java
View file @
e1ab41fe
...
@@ -20,7 +20,7 @@ public class LoginController {
...
@@ -20,7 +20,7 @@ public class LoginController {
@PostMapping
(
"/in"
)
@PostMapping
(
"/in"
)
public
Result
<
String
>
loginIn
(
@RequestBody
LoginDTO
loginDTO
)
{
public
Result
<
String
>
loginIn
(
@RequestBody
LoginDTO
loginDTO
)
{
if
(!
loginDTO
.
getUsername
().
equals
(
"admin"
)
||
!
loginDTO
.
getPassword
().
equals
(
"123456"
))
{
if
(!
loginDTO
.
getUsername
().
equals
(
"admin"
)
||
!
loginDTO
.
getPassword
().
equals
(
"123456"
))
{
return
Result
.
error
(
401
,
"
用户名
或密码错误"
);
return
Result
.
error
(
401
,
"
账号
或密码错误"
);
}
}
return
Result
.
success
(
"登录成功"
);
return
Result
.
success
(
"登录成功"
);
}
}
...
...
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