mirror of
https://github.com/friendica/friendica
synced 2025-04-26 12:30:11 +00:00
We need to create a vapid public and private key
This commit is contained in:
parent
74f3cbc383
commit
5056376902
2 changed files with 12 additions and 5 deletions
|
@ -19,6 +19,10 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see https://github.com/web-push-libs/web-push-php
|
||||
* Possibly we should simply use this.
|
||||
*/
|
||||
namespace Friendica\Model;
|
||||
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -104,6 +108,6 @@ class Subscription
|
|||
$keypair = Crypto::newECKeypair();
|
||||
DI::config()->set('system', 'ec_keypair', $keypair);
|
||||
}
|
||||
return $keypair['vapid'];
|
||||
return $keypair['vapid-public'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue