Skip to content

Commit f2e46d5

Browse files
committed
add additional password mask controls
1 parent ac47377 commit f2e46d5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

interface/src/forms/APSettingsForm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import MenuItem from '@material-ui/core/MenuItem';
1010
import { TextValidator, ValidatorForm, SelectValidator } from 'react-material-ui-form-validator';
1111

1212
import {isAPEnabled} from '../constants/WiFiAPModes';
13+
import PasswordValidator from '../components/PasswordValidator';
1314

1415
const styles = theme => ({
1516
loadingSettings: {
@@ -73,7 +74,7 @@ class APSettingsForm extends React.Component {
7374
onChange={handleValueChange('ssid')}
7475
margin="normal"
7576
/>
76-
<TextValidator
77+
<PasswordValidator
7778
validators={['required', 'matchRegexp:^.{0,64}$']}
7879
errorMessages={['Access Point Password is required', 'Access Point Password must be 64 characters or less']}
7980
name="password"

interface/src/forms/OTASettingsForm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
1212
import isIP from '../validators/isIP';
1313
import isHostname from '../validators/isHostname';
1414
import or from '../validators/or';
15+
import PasswordValidator from '../components/PasswordValidator';
1516

1617
const styles = theme => ({
1718
loadingSettings: {
@@ -83,7 +84,7 @@ class OTASettingsForm extends React.Component {
8384
margin="normal"
8485
/>
8586

86-
<TextValidator
87+
<PasswordValidator
8788
validators={['required', 'matchRegexp:^.{0,64}$']}
8889
errorMessages={['OTA Password is required', 'OTA Point Password must be 64 characters or less']}
8990
name="password"

0 commit comments

Comments
 (0)