From dffea5d3b908ac395f43a5518d18d5986dc9b48e Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 12 Sep 2018 19:57:40 +0200 Subject: [PATCH] Added Plain Password Attribute --- .../Attribut/PlainPasswordAttribute.php | 29 +++++++++++++++++++ application/src/Entity/User.php | 3 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 application/src/Entity/Attribut/PlainPasswordAttribute.php diff --git a/application/src/Entity/Attribut/PlainPasswordAttribute.php b/application/src/Entity/Attribut/PlainPasswordAttribute.php new file mode 100644 index 0000000..ae2b57d --- /dev/null +++ b/application/src/Entity/Attribut/PlainPasswordAttribute.php @@ -0,0 +1,29 @@ +plainPassword; + } + + public function setPlainPassword($password): void + { + $this->plainPassword = $password; + } +} + diff --git a/application/src/Entity/User.php b/application/src/Entity/User.php index 30778c2..2a73600 100644 --- a/application/src/Entity/User.php +++ b/application/src/Entity/User.php @@ -4,6 +4,7 @@ namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use App\Entity\Attribut\UsernameAttribut; use App\Entity\Attribut\PasswordAttribut; +use App\Entity\Attribut\PlainPasswordAttribute; /** * @@ -13,7 +14,7 @@ use App\Entity\Attribut\PasswordAttribut; */ class User extends AbstractSource implements UserInterface { - use UsernameAttribut,PasswordAttribut; + use UsernameAttribut,PasswordAttribut,PlainPasswordAttribute; /** * @ORM\Column(name="is_active", type="boolean")