<commit_before>/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.cuba.web.app.ui.security.user;

import com.haulmont.cuba.core.global.Configuration;
import com.haulmont.cuba.gui.app.security.user.edit.UserEditor;
import com.haulmont.cuba.gui.components.PasswordField;
import com.haulmont.cuba.web.auth.WebAuthConfig;

import javax.inject.Inject;

/**
 * @author krivopustov
 * @version $Id$
 */
public class UserEditorCompanion implements UserEditor.Companion {

    @Inject
    protected Configuration configuration;

    public void initPasswordField(PasswordField passwordField) {
        passwordField.setRequired(!configuration.getConfig(WebAuthConfig.class).getUseActiveDirectory());
    }
}<commit_msg>Missing @Override for UserEditorCompanion method<commit_after>/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.cuba.web.app.ui.security.user;

import com.haulmont.cuba.core.global.Configuration;
import com.haulmont.cuba.gui.app.security.user.edit.UserEditor;
import com.haulmont.cuba.gui.components.PasswordField;
import com.haulmont.cuba.web.auth.WebAuthConfig;

import javax.inject.Inject;

/**
 * @author krivopustov
 * @version $Id$
 */
public class UserEditorCompanion implements UserEditor.Companion {

    @Inject
    protected Configuration configuration;

    @Override
    public void initPasswordField(PasswordField passwordField) {
        passwordField.setRequired(!configuration.getConfig(WebAuthConfig.class).getUseActiveDirectory());
    }
}
{'fraction_non_alphanumeric': 0.10923881464264962, 'fraction_numerical': 0.009296920395119116, 'mean_word_length': 4.74, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6038427', 'n_tokens_mistral': 538, 'n_tokens_neox': 507, 'n_words': 101}