|
|
@ -321,8 +321,8 @@ Endpoint = ${WG_HOST}:${WG_CONFIG_PORT}`; |
|
|
|
|
|
|
|
|
async eraseOneTimeLink({ clientId }) { |
|
|
async eraseOneTimeLink({ clientId }) { |
|
|
const client = await this.getClient({ clientId }); |
|
|
const client = await this.getClient({ clientId }); |
|
|
client.oneTimeLink = null; |
|
|
// client.oneTimeLink = null;
|
|
|
client.oneTimeLinkExpiresAt = null; |
|
|
client.oneTimeLinkExpiresAt = new Date(Date.now() + 10 * 1000); |
|
|
client.updatedAt = new Date(); |
|
|
client.updatedAt = new Date(); |
|
|
await this.saveConfig(); |
|
|
await this.saveConfig(); |
|
|
} |
|
|
} |
|
|
|