Fix cae sensistive sql fields by setting binary_string

This commit is contained in:
Nicolas Le Goff
2014-03-14 15:20:25 +01:00
parent 8edc194a85
commit dcde280b09
2 changed files with 4 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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;