Merge pull request #15187 from snipe/feature/sc-26458
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Waiting to run

Use the `pwd_secure_min` value (plus 5) for generated password
This commit is contained in:
snipe 2024-07-29 14:38:39 +01:00 committed by GitHub
commit 55f9886412
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -678,7 +678,7 @@ $(document).ready(function() {
'bind': 'click', 'bind': 'click',
'passwordElement': '#password', 'passwordElement': '#password',
'displayElement': '#generated-password', 'displayElement': '#generated-password',
'passwordLength': 16, 'passwordLength': {{ ($settings->pwd_secure_min + 5) }},
'uppercase': true, 'uppercase': true,
'lowercase': true, 'lowercase': true,
'numbers': true, 'numbers': true,

View file

@ -7,7 +7,7 @@ use App\Models\Component;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ComponentCheckoutTest extends TestCase class ComponentsCheckoutTest extends TestCase
{ {
public function testCheckingOutComponentRequiresCorrectPermission() public function testCheckingOutComponentRequiresCorrectPermission()
{ {