mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-14 06:07:18 +02:00
Added Plain Password Attribute
This commit is contained in:
29
application/src/Entity/Attribut/PlainPasswordAttribute.php
Normal file
29
application/src/Entity/Attribut/PlainPasswordAttribute.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait PlainPasswordAttribute {
|
||||
|
||||
/**
|
||||
*
|
||||
* @Assert\NotBlank()
|
||||
* @Assert\Length(max=4096)
|
||||
*/
|
||||
private $plainPassword;
|
||||
|
||||
public function getPlainPassword(): ?string
|
||||
{
|
||||
return $this->plainPassword;
|
||||
}
|
||||
|
||||
public function setPlainPassword($password): void
|
||||
{
|
||||
$this->plainPassword = $password;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user