mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix cae sensistive sql fields by setting binary_string
This commit is contained in:
@@ -168,6 +168,7 @@ class ORMServiceProvider implements ServiceProviderInterface
|
||||
'longblob' => 'Alchemy\Phrasea\Model\Types\LongBlob',
|
||||
'varbinary' => 'Alchemy\Phrasea\Model\Types\VarBinary',
|
||||
'binary' => 'Alchemy\Phrasea\Model\Types\Binary',
|
||||
'binary_string' => 'Alchemy\Phrasea\Model\Types\BinaryString',
|
||||
];
|
||||
|
||||
foreach ($types as $type => $class) {
|
||||
|
@@ -51,7 +51,7 @@ class User
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=128, options={"collate"="utf8_bin"})
|
||||
* @ORM\Column(type="binary_string", length=128)
|
||||
*/
|
||||
private $login;
|
||||
|
||||
@@ -61,12 +61,12 @@ class User
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=128, nullable=true, options={"collate"="utf8_bin"})
|
||||
* @ORM\Column(type="binary_string", length=128)
|
||||
*/
|
||||
private $password;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=64, nullable=true)
|
||||
* @ORM\Column(type="binary_string", length=64, nullable=true)
|
||||
*/
|
||||
private $nonce;
|
||||
|
||||
|
Reference in New Issue
Block a user