From 6cf7b52453c2483e15611ed2e25f0189ca31ee46 Mon Sep 17 00:00:00 2001 From: eelke Date: Fri, 8 Jul 2022 19:57:27 +0200 Subject: [PATCH] When changing the uuid clear the password Because id is used as part of the encryption process the value is not a valid encoded password anymore. We could decode en reencode the password but wanted a quickfix for now. This is also prevents the weird behaviour that it asks for the manager password but then has to prompt for the connection password. --- pglab/ConnectionController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pglab/ConnectionController.cpp b/pglab/ConnectionController.cpp index d0cf026..c3ae0c5 100644 --- a/pglab/ConnectionController.cpp +++ b/pglab/ConnectionController.cpp @@ -100,6 +100,7 @@ void ConnectionController::editCopy(QModelIndex index) if (config) { auto cc = *config; cc.setUuid(QUuid::createUuid()); + cc.setEncodedPassword({}); // maybe we should decode en reencode? editConfig(cc); } }