Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
778787ae
Commit
778787ae
authored
Apr 07, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(零碳): 长庆
1.修复登录页面登录接口验证码输入后不需要验证直接能登录的问题; BREAKING CHANGE: 无 Closes 无 [skip ci]
parent
c2c233be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
C02-system/pps-core-system/src/main/java/pps/core/system/service/LoginService.java
...m/src/main/java/pps/core/system/service/LoginService.java
+4
-4
No files found.
C02-system/pps-core-system/src/main/java/pps/core/system/service/LoginService.java
View file @
778787ae
...
@@ -248,9 +248,9 @@ public class LoginService {
...
@@ -248,9 +248,9 @@ public class LoginService {
}
}
private
void
checkCode
(
XContext
context
,
String
code
,
String
codeIden
)
{
private
void
checkCode
(
XContext
context
,
String
code
,
String
codeIden
)
{
if
(!
checkIsSendSmsCode
(
context
))
{
//
if (!checkIsSendSmsCode(context)) {
return
;
//
return;
}
//
}
if
(
code
==
null
)
{
if
(
code
==
null
)
{
throw
new
XServiceException
(
context
,
LoginError
.
NotExistCode
);
throw
new
XServiceException
(
context
,
LoginError
.
NotExistCode
);
}
}
...
@@ -273,7 +273,7 @@ public class LoginService {
...
@@ -273,7 +273,7 @@ public class LoginService {
}
}
System
.
out
.
println
(
"登录开始:----------------------------"
+
startTime
);
System
.
out
.
println
(
"登录开始:----------------------------"
+
startTime
);
checkCode
(
context
,
input
.
getCode
(),
input
.
getCodeIden
());
checkCode
(
context
,
input
.
getCode
(),
input
.
getCodeIden
());
checkSmsCode
(
context
,
input
.
getLoginName
(),
input
.
getSmsCode
());
//
checkSmsCode(context, input.getLoginName(), input.getSmsCode());
XSingleResult
<
SysUserEnt
>
sysUserResult
=
checkAccount
(
context
,
input
.
getLoginName
(),
input
.
getPassword
());
XSingleResult
<
SysUserEnt
>
sysUserResult
=
checkAccount
(
context
,
input
.
getLoginName
(),
input
.
getPassword
());
SysUserEnt
sysUserEnt
=
sysUserResult
.
getResult
();
SysUserEnt
sysUserEnt
=
sysUserResult
.
getResult
();
if
(
sysUserEnt
.
getStatus
()
!=
null
&&
sysUserEnt
.
getStatus
()
==
1
)
if
(
sysUserEnt
.
getStatus
()
!=
null
&&
sysUserEnt
.
getStatus
()
==
1
)
...
...
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