|
16 | 16 | <field id="customer" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
17 | 17 | <label>Customer Token Lifetime (hours)</label>
|
18 | 18 | <comment>We will disable this feature if the value is empty.</comment>
|
| 19 | + <validate>required-entry validate-zero-or-greater validate-number</validate> |
19 | 20 | </field>
|
20 | 21 | <field id="admin" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
21 | 22 | <label>Admin Token Lifetime (hours)</label>
|
22 | 23 | <comment>We will disable this feature if the value is empty.</comment>
|
| 24 | + <validate>required-entry validate-zero-or-greater validate-number</validate> |
23 | 25 | </field>
|
24 | 26 | </group>
|
25 | 27 | <group id="cleanup" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="0" showInStore="0">
|
26 | 28 | <label>Cleanup Settings</label>
|
27 | 29 | <field id="cleanup_probability" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
28 | 30 | <label>Cleanup Probability</label>
|
29 | 31 | <comment>Integer. Launch cleanup in X OAuth requests. 0 (not recommended) - to disable cleanup</comment>
|
| 32 | + <validate>required-entry validate-zero-or-greater validate-digits</validate> |
30 | 33 | </field>
|
31 | 34 | <field id="expiration_period" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
32 | 35 | <label>Expiration Period</label>
|
33 | 36 | <comment>Cleanup entries older than X minutes.</comment>
|
| 37 | + <validate>required-entry validate-zero-or-greater validate-number</validate> |
34 | 38 | </field>
|
35 | 39 | </group>
|
36 | 40 | <group id="consumer" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="0" showInStore="0">
|
37 | 41 | <label>Consumer Settings</label>
|
38 | 42 | <field id="expiration_period" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
39 | 43 | <label>Expiration Period</label>
|
40 | 44 | <comment>Consumer key/secret will expire if not used within X seconds after Oauth token exchange starts.</comment>
|
| 45 | + <validate>required-entry validate-zero-or-greater validate-number</validate> |
41 | 46 | </field>
|
42 | 47 | <field id="post_maxredirects" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
43 | 48 | <label>OAuth consumer credentials HTTP Post maxredirects</label>
|
44 | 49 | <comment>Number of maximum redirects for OAuth consumer credentials Post request.</comment>
|
| 50 | + <validate>required-entry validate-zero-or-greater validate-digits</validate> |
45 | 51 | </field>
|
46 | 52 | <field id="post_timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
47 | 53 | <label>OAuth consumer credentials HTTP Post timeout</label>
|
48 | 54 | <comment>Timeout for OAuth consumer credentials Post request within X seconds.</comment>
|
| 55 | + <validate>required-entry validate-zero-or-greater validate-number</validate> |
49 | 56 | </field>
|
50 | 57 | </group>
|
51 | 58 | <group id="authentication_lock" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="0" showInStore="0">
|
52 | 59 | <label>Authentication Locks</label>
|
53 | 60 | <field id="max_failures_count" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
54 | 61 | <label>Maximum Login Failures to Lock Out Account</label>
|
55 | 62 | <comment>Maximum Number of authentication failures to lock out account.</comment>
|
| 63 | + <validate>required-entry validate-zero-or-greater validate-digits</validate> |
56 | 64 | </field>
|
57 | 65 | <field id="timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
|
58 | 66 | <label>Lockout Time (seconds)</label>
|
59 | 67 | <comment>Period of time in seconds after which account will be unlocked.</comment>
|
| 68 | + <validate>required-entry validate-zero-or-greater validate-number</validate> |
60 | 69 | </field>
|
61 | 70 | </group>
|
62 |
| - |
63 | 71 | </section>
|
64 | 72 | </system>
|
65 | 73 | </config>
|
0 commit comments