Authored by zhaoyue

Fix little bug

1 git add --all src/* 1 git add --all src/*
2 git add push.sh 2 git add push.sh
3 git add pom.xml 3 git add pom.xml
4 -git commit -m "Upsoft pass testing, fix little bug"  
5 -git push origin zhaoyue-dev2 4 +git commit -m "Fix little bug"
  5 +git push origin master
6 git status 6 git status
1 package com.xkl.service; 1 package com.xkl.service;
2 2
  3 +import com.xkl.config.Constants;
3 import com.xkl.domain.User; 4 import com.xkl.domain.User;
4 import com.xkl.repository.UserRepository; 5 import com.xkl.repository.UserRepository;
5 import com.xkl.security.SecurityTool; 6 import com.xkl.security.SecurityTool;
@@ -15,7 +16,7 @@ public class LoginServiceImpl implements ILoginService{ @@ -15,7 +16,7 @@ public class LoginServiceImpl implements ILoginService{
15 private UserRepository userRepository; 16 private UserRepository userRepository;
16 @Override 17 @Override
17 public User check(String username, String password) { 18 public User check(String username, String password) {
18 - User user = userRepository.findByLoginAccount(username); 19 + User user = userRepository.findByLoginAccountAndStatus(username, Constants.STATUS_OK2);
19 20
20 if (user == null) { //用户不存在 21 if (user == null) { //用户不存在
21 return null; 22 return null;