123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <?xml version="1.0"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
- <system>
- <section id="admin">
- <group id="captcha" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
- <label>CAPTCHA</label>
- <field id="enable" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Enable CAPTCHA in Admin</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- </field>
- <field id="font" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Font</label>
- <source_model>Magento\Captcha\Model\Config\Font</source_model>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- <field id="forms" translate="label" type="multiselect" sortOrder="3" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Forms</label>
- <source_model>Magento\Captcha\Model\Config\Form\Backend</source_model>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- <field id="mode" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Displaying Mode</label>
- <source_model>Magento\Captcha\Model\Config\Mode</source_model>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- <field id="failed_attempts_login" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Number of Unsuccessful Attempts to Login</label>
- <comment>If 0 is specified, CAPTCHA on the Login form will be always available.</comment>
- <depends>
- <field id="mode">after_fail</field>
- <field id="enable">1</field>
- </depends>
- <frontend_class>required-entry validate-digits</frontend_class>
- </field>
- <field id="timeout" translate="label" type="text" sortOrder="6" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>CAPTCHA Timeout (minutes)</label>
- <depends>
- <field id="enable">1</field>
- </depends>
- <frontend_class>required-entry validate-digits</frontend_class>
- </field>
- <field id="length" translate="label comment" type="text" sortOrder="7" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Number of Symbols</label>
- <comment>Please specify 8 symbols at the most. Range allowed (e.g. 3-5)</comment>
- <depends>
- <field id="enable">1</field>
- </depends>
- <frontend_class>required-entry</frontend_class>
- </field>
- <field id="symbols" translate="label comment" type="text" sortOrder="8" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Symbols Used in CAPTCHA</label>
- <comment>
- <![CDATA[Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.<br />Similar looking characters (e.g. "i", "l", "1") decrease chance of correct recognition by customer.]]>
- </comment>
- <depends>
- <field id="enable">1</field>
- </depends>
- <frontend_class>required-entry validate-alphanum</frontend_class>
- </field>
- <field id="case_sensitive" translate="label" type="select" sortOrder="9" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Case Sensitive</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- </group>
- </section>
- <section id="customer">
- <group id="captcha" translate="label" type="text" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="0">
- <label>CAPTCHA</label>
- <field id="enable" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Enable CAPTCHA on Storefront</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- </field>
- <field id="font" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Font</label>
- <source_model>Magento\Captcha\Model\Config\Font</source_model>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- <field id="forms" translate="label comment" type="multiselect" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Forms</label>
- <source_model>Magento\Captcha\Model\Config\Form\Frontend</source_model>
- <comment>CAPTCHA for "Create user" and "Forgot password" forms is always enabled if chosen.</comment>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- <field id="mode" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Displaying Mode</label>
- <source_model>Magento\Captcha\Model\Config\Mode</source_model>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- <field id="failed_attempts_login" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Number of Unsuccessful Attempts to Login</label>
- <comment>If 0 is specified, CAPTCHA on the Login form will be always available.</comment>
- <depends>
- <field id="enable">1</field>
- <field id="mode">after_fail</field>
- </depends>
- <frontend_class>required-entry validate-digits</frontend_class>
- </field>
- <field id="timeout" translate="label" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>CAPTCHA Timeout (minutes)</label>
- <depends>
- <field id="enable">1</field>
- </depends>
- <frontend_class>required-entry validate-digits</frontend_class>
- </field>
- <field id="length" translate="label comment" type="text" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Number of Symbols</label>
- <comment>Please specify 8 symbols at the most. Range allowed (e.g. 3-5)</comment>
- <depends>
- <field id="enable">1</field>
- </depends>
- <frontend_class>required-entry validate-range range-1-8</frontend_class>
- </field>
- <field id="symbols" translate="label comment" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Symbols Used in CAPTCHA</label>
- <comment>
- <![CDATA[Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed.<br />Similar looking characters (e.g. "i", "l", "1") decrease chance of correct recognition by customer.]]>
- </comment>
- <depends>
- <field id="enable">1</field>
- </depends>
- <frontend_class>required-entry validate-alphanum</frontend_class>
- </field>
- <field id="case_sensitive" translate="label" type="select" sortOrder="9" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Case Sensitive</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- <depends>
- <field id="enable">1</field>
- </depends>
- </field>
- </group>
- </section>
- </system>
- </config>
|