From a124f46861d549ddc13485536962e34d80de939a Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Sun, 22 Mar 2026 18:55:26 +0000 Subject: Add authentication dialog Introduce start_auth_flow, a function invoked by typing `/auth username` in OOC. It sends an public-key authentication request to the server, starting the entire flow. The flow invoves two dialogs: to select the key, and to enter the passphrase to unlock the key. For convenience, each successful unlock also remembers the key for that username on the server, storing this in `saved_auth.json` (I chose JSON because I wanted it to stay human-editable; INI would be better, but it suffers from bad platform quirks in Qt). --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index e998eed..0bc4e80 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -104,6 +104,7 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } main_app.keyring_model.load_keys(); + main_app.saved_auth.load(); main_app.construct_lobby(); main_app.net_manager->get_server_list(); -- cgit