8000 [Security] [Custom Provider] Use properties on WebserviceUser by eduardosoliv · Pull Request #4052 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Security] [Custom Provider] Use properties on WebserviceUser #4052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Security] [Custom Provider] Use properties on WebserviceUser
  • Loading branch information
entering committed Jul 24, 2014
commit c6ede6d6d4fa84fbcf014e7ba3b344993407edd0
6 changes: 3 additions & 3 deletions cookbook/security/custom_provider.rst
Original file line number Diff line number Diff line change
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