Fix onetimelink (#1367)

* Russian translation

* fix onetime link for android tv

---------

Co-authored-by: Vadim Babadzhanyan <vadim.babadzhanyan@my.games>
This commit is contained in:
Vadim Babadzhanyan 2024-09-07 09:43:59 +03:00 committed by GitHub
parent 067b7bcf84
commit 33b4c3859d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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