8000 Security] [Custom Provider] Use properties on WebserviceUser · symfony/symfony-docs@d82bb24 · GitHub
[go: up one dir, main page]

Skip to content

Commit d82bb24

Browse files
enteringweaverryan
entering
authored andcommitted
Security] [Custom Provider] Use properties on WebserviceUser
1 parent 6576f33 commit d82bb24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/security/custom_provider.rst

Lines changed: 3 additions & 3 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->getPassword() !== $user->getPassword()) {
89+
if ($this->password !== $user->getPassword()) {
9090
return false;
9191
}
9292

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

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

0 commit comments

Comments
 (0)
0