From bf11ae34902669482f42a32a95e04819773db5bb Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:39:08 +0100 Subject: [PATCH] Fix authsave to save both username and password (#390) Update do_authsave() to call psync_set_user_pass() instead of psync_set_pass(), ensuring both username and password are persisted. Co-authored-by: Levi Neely --- 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);