From 8d69fc83c5b1dc371255388330148e6743455394 Mon Sep 17 00:00:00 2001 From: entering Date: Thu, 24 Jul 2014 11:45:42 +0100 Subject: [PATCH 1/2] [Security] [Custom Provider] Use getters on WebserviceUser --- cookbook/security/custom_provider.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/security/custom_provider.rst b/cookbook/security/custom_provider.rst index 5056f96f7c0..e0a6cd6580a 100644 --- a/cookbook/security/custom_provider.rst +++ b/cookbook/security/custom_provider.rst @@ -86,7 +86,7 @@ This is how your ``WebserviceUser`` class looks in action:: return false; } - if ($this->password !== $user->getPassword()) { + if ($this->getPassword() !== $user->getPassword()) { return false; } @@ -94,7 +94,7 @@ This is how your ``WebserviceUser`` class looks in action:: return false; } - if ($this->username !== $user->getUsername()) { + if ($this->getUsername() !== $user->getUsername()) { return false; } From c6ede6d6d4fa84fbcf014e7ba3b344993407edd0 Mon Sep 17 00:00:00 2001 From: entering Date: Thu, 24 Jul 2014 12:24:26 +0100 Subject: [PATCH 2/2] Security] [Custom Provider] Use properties on WebserviceUser --- cookbook/security/custom_provider.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/security/custom_provider.rst b/cookbook/security/custom_provider.rst index e0a6cd6580a..031d683c2a8 100644 --- a/cookbook/security/custom_provider.rst +++ b/cookbook/security/custom_provider.rst @@ -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; }