mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33: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',
|
'longblob' => 'Alchemy\Phrasea\Model\Types\LongBlob',
|
||||||
'varbinary' => 'Alchemy\Phrasea\Model\Types\VarBinary',
|
'varbinary' => 'Alchemy\Phrasea\Model\Types\VarBinary',
|
||||||
'binary' => 'Alchemy\Phrasea\Model\Types\Binary',
|
'binary' => 'Alchemy\Phrasea\Model\Types\Binary',
|
||||||
|
'binary_string' => 'Alchemy\Phrasea\Model\Types\BinaryString',
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($types as $type => $class) {
|
foreach ($types as $type => $class) {
|
||||||
|
@@ -51,7 +51,7 @@ class User
|
|||||||
private $id;
|
private $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="string", length=128, options={"collate"="utf8_bin"})
|
* @ORM\Column(type="binary_string", length=128)
|
||||||
*/
|
*/
|
||||||
private $login;
|
private $login;
|
||||||
|
|
||||||
@@ -61,12 +61,12 @@ class User
|
|||||||
private $email;
|
private $email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="string", length=128, nullable=true, options={"collate"="utf8_bin"})
|
* @ORM\Column(type="binary_string", length=128)
|
||||||
*/
|
*/
|
||||||
private $password;
|
private $password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="string", length=64, nullable=true)
|
* @ORM\Column(type="binary_string", length=64, nullable=true)
|
||||||
*/
|
*/
|
||||||
private $nonce;
|
private $nonce;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user