Skip to content

Commit

Permalink
URI internal codebase improve user information handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jul 5, 2024
1 parent 2b3649c commit 3353677
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Components/UserInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,12 @@ public function getPass(): ?string

public function getUsername(): ?string
{
return match ($this->username) {
null => null,
default => Encoder::encodeUser($this->username)
};
return Encoder::encodeUser($this->username);
}

public function getPassword(): ?string
{
return match ($this->password) {
null => null,
default => Encoder::encodePassword($this->password)
};
return Encoder::encodePassword($this->password);
}

/**
Expand Down

0 comments on commit 3353677

Please sign in to comment.