Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fangyeqing
/
xkl-interface
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhaoyue
8 years ago
Commit
d1f929ee6e9965571a3b889db4e77d1b4258ff7a
1 parent
c72eee55
Fix little bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
push.sh
src/main/java/com/xkl/service/LoginServiceImpl.java
push.sh
View file @
d1f929e
git add --all src/
*
git add push.sh
git add pom.xml
git commit -m
"Upsoft pass testing, fix little bug"
git push origin zhaoyue-dev2
git commit -m
"Fix little bug"
git push origin master
git status
\ No newline at end of file
...
...
src/main/java/com/xkl/service/LoginServiceImpl.java
View file @
d1f929e
package
com
.
xkl
.
service
;
import
com.xkl.config.Constants
;
import
com.xkl.domain.User
;
import
com.xkl.repository.UserRepository
;
import
com.xkl.security.SecurityTool
;
...
...
@@ -15,7 +16,7 @@ public class LoginServiceImpl implements ILoginService{
private
UserRepository
userRepository
;
@Override
public
User
check
(
String
username
,
String
password
)
{
User
user
=
userRepository
.
findByLoginAccount
(
username
);
User
user
=
userRepository
.
findByLoginAccount
AndStatus
(
username
,
Constants
.
STATUS_OK2
);
if
(
user
==
null
)
{
//用户不存在
return
null
;
...
...
Please
register
or
login
to post a comment