File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import MenuItem from '@material-ui/core/MenuItem';
10
10
import { TextValidator , ValidatorForm , SelectValidator } from 'react-material-ui-form-validator' ;
11
11
12
12
import { isAPEnabled } from '../constants/WiFiAPModes' ;
13
+ import PasswordValidator from '../components/PasswordValidator' ;
13
14
14
15
const styles = theme => ( {
15
16
loadingSettings : {
@@ -73,7 +74,7 @@ class APSettingsForm extends React.Component {
73
74
onChange = { handleValueChange ( 'ssid' ) }
74
75
margin = "normal"
75
76
/>
76
- < TextValidator
77
+ < PasswordValidator
77
78
validators = { [ 'required' , 'matchRegexp:^.{0,64}$' ] }
78
79
errorMessages = { [ 'Access Point Password is required' , 'Access Point Password must be 64 characters or less' ] }
79
80
name = "password"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
12
12
import isIP from '../validators/isIP' ;
13
13
import isHostname from '../validators/isHostname' ;
14
14
import or from '../validators/or' ;
15
+ import PasswordValidator from '../components/PasswordValidator' ;
15
16
16
17
const styles = theme => ( {
17
18
loadingSettings : {
@@ -83,7 +84,7 @@ class OTASettingsForm extends React.Component {
83
84
margin = "normal"
84
85
/>
85
86
86
- < TextValidator
87
+ < PasswordValidator
87
88
validators = { [ 'required' , 'matchRegexp:^.{0,64}$' ] }
88
89
errorMessages = { [ 'OTA Password is required' , 'OTA Point Password must be 64 characters or less' ] }
89
90
name = "password"
You can’t perform that action at this time.
0 commit comments