Skip to content

Commit b3f7137

Browse files
Update minimum password length requirements (#25946)
1 parent 02a45e8 commit b3f7137

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ INTERNAL_TOKEN=
454454
;REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
455455
;;
456456
;; The minimum password length for new Users
457-
;MIN_PASSWORD_LENGTH = 6
457+
;MIN_PASSWORD_LENGTH = 8
458458
;;
459459
;; Set to true to allow users to import local server paths
460460
;IMPORT_LOCAL_PATHS = false

docs/content/administration/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ And the following unique queues:
559559
- `scrypt`: `scrypt$65536$16$2$50`
560560
- Adjusting the algorithm parameters using this functionality is done at your own risk.
561561
- `CSRF_COOKIE_HTTP_ONLY`: **true**: Set false to allow JavaScript to read CSRF cookie.
562-
- `MIN_PASSWORD_LENGTH`: **6**: Minimum password length for new users.
562+
- `MIN_PASSWORD_LENGTH`: **8**: Minimum password length for new users.
563563
- `PASSWORD_COMPLEXITY`: **off**: Comma separated list of character classes required to pass minimum complexity. If left empty or no valid values are specified, checking is disabled (off):
564564
- lower - use one or more lower latin characters
565565
- upper - use one or more upper latin characters

modules/setting/security.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func loadSecurityFrom(rootCfg ConfigProvider) {
124124
ReverseProxyTrustedProxies = []string{"127.0.0.0/8", "::1/128"}
125125
}
126126

127-
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6)
127+
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(8)
128128
ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false)
129129
DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(true)
130130
DisableWebhooks = sec.Key("DISABLE_WEBHOOKS").MustBool(false)

tests/e2e/example.test.e2e.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ test('Test Register Form', async ({page}, workerInfo) => {
1818
await expect(response?.status()).toBe(200); // Status OK
1919
await page.type('input[name=user_name]', `e2e-test-${workerInfo.workerIndex}`);
2020
await page.type('input[name=email]', `e2e-test-${workerInfo.workerIndex}@test.com`);
21-
await page.type('input[name=password]', 'test123');
22-
await page.type('input[name=retype]', 'test123');
21+
await page.type('input[name=password]', 'test123test123');
22+
await page.type('input[name=retype]', 'test123test123');
2323
await page.click('form button.ui.green.button:visible');
2424
// Make sure we routed to the home page. Else login failed.
2525
await expect(page.url()).toBe(`${workerInfo.project.use.baseURL}/`);

0 commit comments

Comments
 (0)