Pull request: 3684 validate client id in the mobileconfig form
Closes #3684 Squashed commit of the following: commit 78e9862f7a06262f91c28d6ddcc10512560eedae Author: Ildar Kamalov <ik@adguard.com> Date: Fri Oct 15 14:39:36 2021 +0300 fix build commit 3ed4ee69590f238396dd3aab2b62f110baa6d681 Author: Ildar Kamalov <ik@adguard.com> Date: Fri Oct 15 13:39:12 2021 +0300 client: validate client id in the mobileconfig form
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
toNumber,
|
||||
} from '../../../helpers/form';
|
||||
import {
|
||||
validateClientId,
|
||||
validateConfigClientId,
|
||||
validateServerName,
|
||||
validatePort,
|
||||
validateIsSafePort,
|
||||
@@ -132,7 +132,7 @@ const MobileConfigForm = ({ invalid }) => {
|
||||
component={renderInputField}
|
||||
className="form-control"
|
||||
placeholder={i18next.t('client_id_placeholder')}
|
||||
validate={validateClientId}
|
||||
validate={validateConfigClientId}
|
||||
/>
|
||||
</div>
|
||||
<div className="form__group form__group--settings">
|
||||
|
||||
Reference in New Issue
Block a user