Refactor SettingsDeletePassword and PasswordManager to improve parameter handling, enhance UUID validation, and ensure proper type casting for password verification

https://github.com/nosial/Socialbox-PHP/issues/59
This commit is contained in:
netkas 2025-03-12 17:46:37 -04:00
parent 9a6f37aa05
commit 340f2a3c75
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
2 changed files with 8 additions and 12 deletions

View file

@ -148,6 +148,10 @@
{
$peerUuid = $peerUuid->getUuid();
}
elseif(!Validator::validateUuid($peerUuid))
{
throw new InvalidArgumentException('The given internal peer UUID is not a valid UUID V4');
}
try
{