From 732fefb8a68dc1845bc9e8b7822874295417056a Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 11 Mar 2026 22:38:51 +0100 Subject: [PATCH] Fix authsave to save both username and password Update do_authsave() to call psync_set_user_pass() instead of psync_set_pass(), ensuring both username and password are persisted. --- pclsync_lib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pclsync_lib.cpp b/pclsync_lib.cpp index 34961ba..fb63b1e 100644 --- a/pclsync_lib.cpp +++ b/pclsync_lib.cpp @@ -192,7 +192,8 @@ int clib::pclsync_lib::receive_auth(const char *pass) { } int clib::pclsync_lib::receive_auth_save(const char *pass) { - psync_set_pass(pass, 1); + const char *username = get_lib().username_.c_str(); + psync_set_user_pass(username, pass, 1); pthread_mutex_lock(&auth_mtx); get_lib().password_ = std::string(pass); pthread_cond_signal(&auth_cond);