Convert password salt to ASCII to avoid encoding issues with PostgreSQL

This commit is contained in:
Johannes Meyer 2014-10-08 15:26:42 +02:00
parent baa6abdb00
commit 96ba45d896
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class DbUserBackend extends UserBackend
*/
protected function generateSalt()
{
return openssl_random_pseudo_bytes(64);
return bin2hex(openssl_random_pseudo_bytes(32));
}
/**