Convert password salt to ASCII to avoid encoding issues with PostgreSQL
This commit is contained in:
parent
baa6abdb00
commit
96ba45d896
|
@ -130,7 +130,7 @@ class DbUserBackend extends UserBackend
|
|||
*/
|
||||
protected function generateSalt()
|
||||
{
|
||||
return openssl_random_pseudo_bytes(64);
|
||||
return bin2hex(openssl_random_pseudo_bytes(32));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue