Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
0810ed5a
Commit
0810ed5a
authored
Apr 07, 2020
by
东州 翁
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug了登录修改密码接口
parent
a7e0e9ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/main/java/cn/timer/api/controller/LoginController.java
+4
-6
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
0810ed5a
...
@@ -183,7 +183,7 @@ public class LoginController {
...
@@ -183,7 +183,7 @@ public class LoginController {
if
(
entRegisterDto
.
getPwUpdateType
()
!=
2
)
{
if
(
entRegisterDto
.
getPwUpdateType
()
!=
2
)
{
// String codeRedis =redisTemplate.get(phone).toString();
// String codeRedis =redisTemplate.get(phone).toString();
String
codeRedis
=
(
String
)
session
.
getAttribute
(
phone
);
String
codeRedis
=
session
.
getAttribute
(
phone
).
toString
(
);
if
(
code
==
null
)
{
if
(
code
==
null
)
{
return
ResultUtil
.
error
(
"请填写验证码"
);
return
ResultUtil
.
error
(
"请填写验证码"
);
}
}
...
@@ -193,10 +193,8 @@ public class LoginController {
...
@@ -193,10 +193,8 @@ public class LoginController {
QyzxEmpLogin
qyzxEmpLogin
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
QyzxEmpLogin
qyzxEmpLogin
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
.
eq
(!
StrUtil
.
hasBlank
(
phone
),
QyzxEmpLogin:
:
getPhone
,
phone
).
one
();
.
eq
(!
StrUtil
.
hasBlank
(
phone
),
QyzxEmpLogin:
:
getPhone
,
phone
).
one
();
if
(
qyzxEmpLogin
!=
null
)
{
if
(
qyzxEmpLogin
!=
null
)
{
qyzxEmpLogin
.
setPhone
(
phone
);
qyzxEmpLogin
.
setPhone
(
phone
);
qyzxEmpLogin
.
setPw
(
Md5
.
md5
(
pw
));
qyzxEmpLogin
.
setPw
(
Md5
.
md5
(
pw
));
qyzxEmpLogin
.
updateById
();
qyzxEmpLogin
.
updateById
();
return
ResultUtil
.
success
(
"修改密码成功"
);
return
ResultUtil
.
success
(
"修改密码成功"
);
}
else
{
}
else
{
...
@@ -206,15 +204,15 @@ public class LoginController {
...
@@ -206,15 +204,15 @@ public class LoginController {
if
(
code
==
null
)
{
if
(
code
==
null
)
{
return
ResultUtil
.
error
(
"请填写原密码"
);
return
ResultUtil
.
error
(
"请填写原密码"
);
}
}
if
(
pw
.
trim
()
==
code
.
trim
(
))
{
if
(
pw
.
trim
()
.
equals
(
code
.
trim
()
))
{
return
ResultUtil
.
error
(
"新密码与原密码相同!请更改重试"
);
return
ResultUtil
.
error
(
"新密码与原密码相同!请更改重试"
);
}
}
QyzxEmpLogin
qyzxEmpLogin
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
QyzxEmpLogin
qyzxEmpLogin
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
.
eq
(!
StrUtil
.
hasBlank
(
phone
),
QyzxEmpLogin:
:
getPhone
,
phone
).
one
();
.
eq
(!
StrUtil
.
hasBlank
(
phone
),
QyzxEmpLogin:
:
getPhone
,
phone
).
one
();
if
(
qyzxEmpLogin
!=
null
)
{
if
(
qyzxEmpLogin
!=
null
)
{
if
(
qyzxEmpLogin
.
getPw
()
==
Md5
.
md5
(
pw
))
{
if
(
qyzxEmpLogin
.
getPw
()
.
equals
(
Md5
.
md5
(
pw
)
))
{
qyzxEmpLogin
.
setPhone
(
phone
);
qyzxEmpLogin
.
setPhone
(
phone
);
qyzxEmpLogin
.
setPw
(
Md5
.
md5
(
pw
));
qyzxEmpLogin
.
setPw
(
Md5
.
md5
(
code
));
qyzxEmpLogin
.
updateById
();
qyzxEmpLogin
.
updateById
();
return
ResultUtil
.
success
(
"修改密码成功"
);
return
ResultUtil
.
success
(
"修改密码成功"
);
}
else
{
}
else
{
...
...
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