loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update minimum password length requirements (#25946)

authored by

techknowlogick and committed by
GitHub
b3f71371 02a45e8d

+5 -5
+1 -1
custom/conf/app.example.ini
··· 454 454 ;REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128 455 455 ;; 456 456 ;; The minimum password length for new Users 457 - ;MIN_PASSWORD_LENGTH = 6 457 + ;MIN_PASSWORD_LENGTH = 8 458 458 ;; 459 459 ;; Set to true to allow users to import local server paths 460 460 ;IMPORT_LOCAL_PATHS = false
+1 -1
docs/content/administration/config-cheat-sheet.en-us.md
··· 559 559 - `scrypt`: `scrypt$65536$16$2$50` 560 560 - Adjusting the algorithm parameters using this functionality is done at your own risk. 561 561 - `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. 563 563 - `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): 564 564 - lower - use one or more lower latin characters 565 565 - upper - use one or more upper latin characters
+1 -1
modules/setting/security.go
··· 124 124 ReverseProxyTrustedProxies = []string{"127.0.0.0/8", "::1/128"} 125 125 } 126 126 127 - MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6) 127 + MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(8) 128 128 ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false) 129 129 DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(true) 130 130 DisableWebhooks = sec.Key("DISABLE_WEBHOOKS").MustBool(false)
+2 -2
tests/e2e/example.test.e2e.js
··· 18 18 await expect(response?.status()).toBe(200); // Status OK 19 19 await page.type('input[name=user_name]', `e2e-test-${workerInfo.workerIndex}`); 20 20 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'); 23 23 await page.click('form button.ui.green.button:visible'); 24 24 // Make sure we routed to the home page. Else login failed. 25 25 await expect(page.url()).toBe(`${workerInfo.project.use.baseURL}/`);