mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Login prototype
This commit is contained in:
parent
b014f349ae
commit
82003bbe47
11 changed files with 269 additions and 12 deletions
|
@ -46,8 +46,8 @@ class Apps extends BaseApi
|
|||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
||||
$client_id = base64_encode(openssl_random_pseudo_bytes(32));
|
||||
$client_secret = bin2hex(random_bytes(32));
|
||||
$client_id = bin2hex(openssl_random_pseudo_bytes(32));
|
||||
$client_secret = bin2hex(openssl_random_pseudo_bytes(32));
|
||||
|
||||
$fields = ['client_id' => $client_id, 'client_secret' => $client_secret, 'name' => $name, 'redirect_uri' => $redirect];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue