Skip to content

Commit

Permalink
Security] [Custom Provider] Use properties on WebserviceUser
Browse files Browse the repository at this point in the history
  • Loading branch information
entering authored and weaverryan committed Jul 29, 2014
1 parent 6576f33 commit d82bb24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbook/security/custom_provider.rst
Expand Up @@ -86,15 +86,15 @@ This is how your ``WebserviceUser`` class looks in action::
return false;
}

if ($this->getPassword() !== $user->getPassword()) {
if ($this->password !== $user->getPassword()) {
return false;
}

if ($this->getSalt() !== $user->getSalt()) {
if ($this->salt !== $user->getSalt()) {
return false;
}

if ($this->getUsername() !== $user->getUsername()) {
if ($this->username !== $user->getUsername()) {
return false;
}

Expand Down

0 comments on commit d82bb24

Please sign in to comment.