Skip to content

Commit

Permalink
fix: Add CasUser::getUserIdentifier().
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 12, 2021
1 parent c1feee8 commit e19fdb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Security/Core/User/CasUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,19 @@ public function getSalt(): ?string
return null;
}

public function getUserIdentifier()
{
return $this->get('user');
}

public function getUsername(): string
{
return $this->get('user');
}

public function isEqualTo(UserInterface $user)
{
return $user->getUsername() === $this->getUsername();
return $user->getUserIdentifier() === $this->getUserIdentifier();
}

/**
Expand Down

0 comments on commit e19fdb3

Please sign in to comment.