[Security] Refuse KDF downgrade; trim profile name and warn on silent credential drop

This commit is contained in:
Lukas Brübach 2026-09-02 20:12:45 +02:00 committed by GitHub
parent 46be02fbcf
commit 8ea3557696
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 1 deletions

View file

@ -55,7 +55,10 @@ public:
}
[[nodiscard]] QString getSaveName() const
{
return saveEdit->text();
// Trim so the profile lookup key always matches the name DlgConnect::actOk
// stored (it saves under saveEdit->text().trimmed()); otherwise a trailing
// space here misses the index and silently drops the saved verifier.
return saveEdit->text().trimmed();
}
[[nodiscard]] bool getSavePassword() const
{