Authored by zhaoyue

Fix little bug

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
... ...
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.findByLoginAccountAndStatus(username, Constants.STATUS_OK2);
if (user == null) { //用户不存在
return null;
... ...