mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
save privatekey for home community
This commit is contained in:
parent
a58e698878
commit
e4f8cd0f35
@ -220,6 +220,7 @@ async function writeHomeCommunityEntry(keyPair: KeyPair): Promise<void> {
|
||||
if (homeCom) {
|
||||
// simply update the existing entry, but it MUST keep the ID and UUID because of possible relations
|
||||
homeCom.publicKey = keyPair.publicKey
|
||||
homeCom.privateKey = keyPair.secretKey
|
||||
homeCom.url = CONFIG.FEDERATION_COMMUNITY_URL + '/api/'
|
||||
homeCom.name = CONFIG.COMMUNITY_NAME
|
||||
homeCom.description = CONFIG.COMMUNITY_DESCRIPTION
|
||||
@ -230,6 +231,7 @@ async function writeHomeCommunityEntry(keyPair: KeyPair): Promise<void> {
|
||||
homeCom = new DbCommunity()
|
||||
homeCom.foreign = false
|
||||
homeCom.publicKey = keyPair.publicKey
|
||||
homeCom.privateKey = keyPair.secretKey
|
||||
homeCom.communityUuid = await newCommunityUuid()
|
||||
homeCom.url = CONFIG.FEDERATION_COMMUNITY_URL + '/api/'
|
||||
homeCom.name = CONFIG.COMMUNITY_NAME
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user