Skip to content

Commit 8d69fc8

Browse files
author
entering
committed
[Security] [Custom Provider] Use getters on WebserviceUser
1 parent 74c2e94 commit 8d69fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/security/custom_provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ This is how your ``WebserviceUser`` class looks in action::
8686
return false;
8787
}
8888

89-
if ($this->password !== $user->getPassword()) {
89+
if ($this->getPassword() !== $user->getPassword()) {
9090
return false;
9191
}
9292

9393
if ($this->getSalt() !== $user->getSalt()) {
9494
return false;
9595
}
9696

97-
if ($this->username !== $user->getUsername()) {
97+
if ($this->getUsername() !== $user->getUsername()) {
9898
return false;
9999
}
100100

0 commit comments

Comments
 (0)