Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
f2578808
Commit
f2578808
authored
Oct 10, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化会员登陆
parent
4a832442
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+1
-1
MemberLoginController.java
...main/java/com/egolm/film/login/MemberLoginController.java
+1
-1
No files found.
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
f2578808
...
@@ -32,7 +32,7 @@ public class MemberServiceImpl implements MemberService {
...
@@ -32,7 +32,7 @@ public class MemberServiceImpl implements MemberService {
@Override
@Override
public
String
encodePassword
(
String
salt
,
String
password
)
{
public
String
encodePassword
(
String
salt
,
String
password
)
{
return
StringUtil
.
toMD5HexString
(
StringUtil
.
toMD5HexString
(
password
+
salt
).
toLowerCase
().
substring
(
4
,
2
0
)).
toLowerCase
();
return
StringUtil
.
toMD5HexString
(
StringUtil
.
toMD5HexString
(
password
+
salt
).
toLowerCase
().
substring
(
4
,
2
4
)).
toLowerCase
();
}
}
@Override
@Override
...
...
src/main/java/com/egolm/film/login/MemberLoginController.java
View file @
f2578808
...
@@ -36,7 +36,7 @@ public class MemberLoginController {
...
@@ -36,7 +36,7 @@ public class MemberLoginController {
}
else
{
}
else
{
LoginToken
token
=
tokenService
.
doLogin
(
username
,
password
);
LoginToken
token
=
tokenService
.
doLogin
(
username
,
password
);
if
(
token
!=
null
)
{
if
(
token
!=
null
)
{
return
Rjx
.
jsonOk
()
.
setData
(
token
)
;
return
Rjx
.
jsonOk
();
}
else
{
}
else
{
throw
new
XException
(
messages
.
get
(
"sys.err.user_or_pwd"
));
throw
new
XException
(
messages
.
get
(
"sys.err.user_or_pwd"
));
}
}
...
...
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