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
56d4351f
Commit
56d4351f
authored
Aug 28, 2026
by
wujipeng
Browse files
默认密码修改
parent
6c6f9f2a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/example/pipelinenetwork/controller/LoginController.java
View file @
56d4351f
...
...
@@ -26,7 +26,7 @@ public class LoginController {
@PostMapping
(
"/in"
)
public
Result
<
String
>
loginIn
(
@RequestBody
LoginDTO
loginDTO
)
{
// 验证账号密码
if
(!
"admin"
.
equals
(
loginDTO
.
getUsername
())
||
!
"
EY7tYrCRPqzm/uk6Koz95Q==
"
.
equals
(
loginDTO
.
getPassword
()))
{
if
(!
"admin"
.
equals
(
loginDTO
.
getUsername
())
||
!
"
123456
"
.
equals
(
loginDTO
.
getPassword
()))
{
return
Result
.
error
(
401
,
"账号或密码错误"
);
}
// 生成JWT Token
...
...
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