use "random_bytes" instead of "openssl_random_pseudo_bytes"
This commit is contained in:
@@ -46,8 +46,8 @@ class Apps extends BaseApi
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
||||
$client_id = bin2hex(openssl_random_pseudo_bytes(32));
|
||||
$client_secret = bin2hex(openssl_random_pseudo_bytes(32));
|
||||
$client_id = bin2hex(random_bytes(32));
|
||||
$client_secret = bin2hex(random_bytes(32));
|
||||
|
||||
$fields = ['client_id' => $client_id, 'client_secret' => $client_secret, 'name' => $name, 'redirect_uri' => $redirect];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user