Skip to content

Commit 0c0b470

Browse files
committed
Resolve "Service->Oauth Settings" has no number validation issue24172
1 parent 2bc471e commit 0c0b470

File tree

1 file changed

+9
-1
lines changed
  • app/code/Magento/Integration/etc/adminhtml

1 file changed

+9
-1
lines changed

app/code/Magento/Integration/etc/adminhtml/system.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,50 +16,58 @@
1616
<field id="customer" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
1717
<label>Customer Token Lifetime (hours)</label>
1818
<comment>We will disable this feature if the value is empty.</comment>
19+
<validate>required-entry validate-zero-or-greater validate-number</validate>
1920
</field>
2021
<field id="admin" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
2122
<label>Admin Token Lifetime (hours)</label>
2223
<comment>We will disable this feature if the value is empty.</comment>
24+
<validate>required-entry validate-zero-or-greater validate-number</validate>
2325
</field>
2426
</group>
2527
<group id="cleanup" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="0" showInStore="0">
2628
<label>Cleanup Settings</label>
2729
<field id="cleanup_probability" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
2830
<label>Cleanup Probability</label>
2931
<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>
3033
</field>
3134
<field id="expiration_period" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
3235
<label>Expiration Period</label>
3336
<comment>Cleanup entries older than X minutes.</comment>
37+
<validate>required-entry validate-zero-or-greater validate-number</validate>
3438
</field>
3539
</group>
3640
<group id="consumer" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="0" showInStore="0">
3741
<label>Consumer Settings</label>
3842
<field id="expiration_period" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
3943
<label>Expiration Period</label>
4044
<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>
4146
</field>
4247
<field id="post_maxredirects" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
4348
<label>OAuth consumer credentials HTTP Post maxredirects</label>
4449
<comment>Number of maximum redirects for OAuth consumer credentials Post request.</comment>
50+
<validate>required-entry validate-zero-or-greater validate-digits</validate>
4551
</field>
4652
<field id="post_timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
4753
<label>OAuth consumer credentials HTTP Post timeout</label>
4854
<comment>Timeout for OAuth consumer credentials Post request within X seconds.</comment>
55+
<validate>required-entry validate-zero-or-greater validate-number</validate>
4956
</field>
5057
</group>
5158
<group id="authentication_lock" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="0" showInStore="0">
5259
<label>Authentication Locks</label>
5360
<field id="max_failures_count" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
5461
<label>Maximum Login Failures to Lock Out Account</label>
5562
<comment>Maximum Number of authentication failures to lock out account.</comment>
63+
<validate>required-entry validate-zero-or-greater validate-digits</validate>
5664
</field>
5765
<field id="timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
5866
<label>Lockout Time (seconds)</label>
5967
<comment>Period of time in seconds after which account will be unlocked.</comment>
68+
<validate>required-entry validate-zero-or-greater validate-number</validate>
6069
</field>
6170
</group>
62-
6371
</section>
6472
</system>
6573
</config>

0 commit comments

Comments
 (0)