4
0

update 2023-07-21 15:55:44

This commit is contained in:
Robot 2023-07-21 15:55:44 +02:00
parent e522837719
commit 3f6b24ca94
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
2 changed files with 12 additions and 0 deletions

View File

@ -162,6 +162,9 @@ final class Linker
**/ **/
public function access(string $linker, string $pass, ?string $oldPass): ?array public function access(string $linker, string $pass, ?string $oldPass): ?array
{ {
// trim all empty space
$pass = trim($pass);
// password to short // password to short
if (strlen($pass) <= 3) if (strlen($pass) <= 3)
{ {
@ -190,6 +193,9 @@ final class Linker
if (!empty($oldPass)) if (!empty($oldPass))
{ {
$oldPass = trim($oldPass);
if (($guid = $this->getPassGuid($linker, $oldPass)) === null) if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
{ {
return [ return [

View File

@ -132,6 +132,9 @@
**/ **/
public function access(string $linker, string $pass, ?string $oldPass): ?array public function access(string $linker, string $pass, ?string $oldPass): ?array
{ {
// trim all empty space
$pass = trim($pass);
// password to short // password to short
if (strlen($pass) <= 3) if (strlen($pass) <= 3)
{ {
@ -160,6 +163,9 @@
if (!empty($oldPass)) if (!empty($oldPass))
{ {
$oldPass = trim($oldPass);
if (($guid = $this->getPassGuid($linker, $oldPass)) === null) if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
{ {
return [ return [