mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 03:08:11 +00:00
Final things.
This commit is contained in:
@@ -133,16 +133,16 @@ class InstallController extends Controller
|
||||
*/
|
||||
public function keys(): void
|
||||
{
|
||||
// switch on PHP version.
|
||||
// switch on PHP version.
|
||||
if (7 === PHP_MAJOR_VERSION) {
|
||||
$rsa = new \phpseclib\Crypt\RSA;
|
||||
$keys = $rsa->createKey(4096);
|
||||
}
|
||||
if (8 === PHP_MAJOR_VERSION) {
|
||||
$keys = \phpseclib3\Crypt\RSA::createKeys(4096);
|
||||
$keys = \phpseclib3\Crypt\RSA::createKey(4096);
|
||||
}
|
||||
|
||||
|
||||
[$publicKey, $privateKey] = [
|
||||
Passport::keyPath('oauth-public.key'),
|
||||
Passport::keyPath('oauth-private.key'),
|
||||
|
Reference in New Issue
Block a user