core: verify connection (#1530)

* core: verify connection

* update commands

* api to get/set verification code/status

* add migration

* refactor

* change command / response names

* reset verified status if code from agent doesn't match
This commit is contained in:
Evgeny Poberezkin
2022-12-09 15:26:43 +00:00
committed by GitHub
parent ab5ae2d2cb
commit 95cc9e1e55
12 changed files with 245 additions and 60 deletions
@@ -258,6 +258,8 @@ CREATE TABLE connections(
local_alias DEFAULT '' CHECK(local_alias NOT NULL),
via_group_link INTEGER DEFAULT 0 CHECK(via_group_link NOT NULL),
group_link_id BLOB,
security_code TEXT NULL,
security_code_verified_at TEXT NULL,
FOREIGN KEY(snd_file_id, connection_id)
REFERENCES snd_files(file_id, connection_id)
ON DELETE CASCADE