|
|
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;
|
...
|
...
|
|