public AuthenticationResult checkUser()

in shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/security/UserAuthenticationService.java [61:69]


    public AuthenticationResult checkUser(final UserAccount userAccount) {
        if (null == userAccount || Strings.isNullOrEmpty(userAccount.getUsername()) || Strings.isNullOrEmpty(userAccount.getPassword())) {
            return new AuthenticationResult(null, null, false);
        }
        if (username.equals(userAccount.getUsername()) && password.equals(userAccount.getPassword())) {
            return new AuthenticationResult(username, password, true);
        }
        return new AuthenticationResult(null, null, false);
    }