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")