Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e53be6

Browse files
committed
require access point password to be 8-64 characters in length (enforced in UI only)
minor doc updates
1 parent 3a7ab54 commit 5e53be6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const theme = createMuiTheme({
279279
main: '#666',
280280
},
281281
info: {
282-
main: blueGrey[900]
282+
main: blueGrey[500]
283283
},
284284
warning: {
285285
main: orange[500]

factory_settings.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ build_flags =
66
-D FACTORY_WIFI_HOSTNAME=\"esp-react\"
77

88
; Access point settings
9-
-D FACTORY_AP_SSID=\"ESP8266-React\"
10-
-D FACTORY_AP_PASSWORD=\"esp-react\"
9+
-D FACTORY_AP_SSID=\"ESP8266-React\" ; 1-64 characters
10+
-D FACTORY_AP_PASSWORD=\"esp-react\" ; 8-64 characters
1111
-D FACTORY_AP_PROVISION_MODE=AP_MODE_DISCONNECTED
1212

1313
; User credentials for admin and guest user

interface/src/ap/APSettingsForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class APSettingsForm extends React.Component<APSettingsFormProps> {
4343
margin="normal"
4444
/>
4545
<PasswordValidator
46-
validators={['required', 'matchRegexp:^.{1,64}$']}
47-
errorMessages={['Access Point Password is required', 'Access Point Password must be 64 characters or less']}
46+
validators={['required', 'matchRegexp:^.{8,64}$']}
47+
errorMessages={['Access Point Password is required', 'Access Point Password must be 8-64 characters']}
4848
name="password"
4949
label="Access Point Password"
5050
fullWidth

0 commit comments

Comments
 (0)