mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Fix RSA token creation.
This commit is contained in:
@@ -30,7 +30,7 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
|||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
use Laravel\Passport\Passport;
|
use Laravel\Passport\Passport;
|
||||||
use Log;
|
use Log;
|
||||||
use phpseclib\Crypt\RSA;
|
use phpseclib3\Crypt\RSA;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trait CreateStuff
|
* Trait CreateStuff
|
||||||
@@ -104,8 +104,7 @@ trait CreateStuff
|
|||||||
*/
|
*/
|
||||||
protected function createOAuthKeys(): void // create stuff
|
protected function createOAuthKeys(): void // create stuff
|
||||||
{
|
{
|
||||||
$rsa = new RSA();
|
$keys = RSA::createKey(4096);
|
||||||
$keys = $rsa->createKey(4096);
|
|
||||||
|
|
||||||
[$publicKey, $privateKey] = [
|
[$publicKey, $privateKey] = [
|
||||||
Passport::keyPath('oauth-public.key'),
|
Passport::keyPath('oauth-public.key'),
|
||||||
|
Reference in New Issue
Block a user