MembershipCheckoutComponent::getPasswordField PHP Method

getPasswordField() public method

public getPasswordField ( )
    public function getPasswordField()
    {
        if ($this->confirmed) {
            //relies on fix: https://github.com/silverstripe/silverstripe-framework/pull/2757
            return ConfirmedPasswordField::create('Password', _t('CheckoutField.Password', 'Password'))->setCanBeEmpty(!Checkout::membership_required());
        }
        return PasswordField::create('Password', _t('CheckoutField.Password', 'Password'));
    }