mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-22 09:35:08 -07:00
[Security] Refuse KDF downgrade; trim profile name and warn on silent credential drop
This commit is contained in:
parent
46be02fbcf
commit
8ea3557696
3 changed files with 20 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue