Fix password hash assignment and update timestamp format in PasswordManager

This commit is contained in:
netkas 2025-03-28 15:01:13 -04:00
parent 8046b8a8a2
commit be25ea49f9
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
3 changed files with 8 additions and 4 deletions

View file

@ -645,7 +645,6 @@
$this->assertTrue($testClient->settingsSetPassword('SecretTestingPassword123'));
$this->assertTrue($testClient->getSessionState()->isAuthenticated());
$signingKeys = [];
$this->expectException(RpcException::class);
$this->expectExceptionCode(StandardError::FORBIDDEN->value);
for($i = 0; $i < 25; $i++)
@ -653,7 +652,6 @@
$signingKeypair = Cryptography::generateSigningKeyPair();
$signatureUuid = $testClient->settingsAddSignature($signingKeypair->getPublicKey());
$this->assertNotNull($signatureUuid);
$signingKeys[$signatureUuid] = $signingKeypair;
}
}
@ -719,6 +717,12 @@
}
}
/**
* @throws DatabaseOperationException
* @throws ResolutionException
* @throws CryptographyException
* @throws RpcException
*/
public function testSettingsUpdatePassword(): void
{
$testClient = Helper::generateRandomClient(COFFEE_DOMAIN, prefix: 'testSettingsAddExceedingSigningKeys');