[Tails-dev] [PATCH tails-greeter] Reset field when a wrong …

Poista viesti

Vastaa
Lähettäjä: Tails developers
Päiväys:  
Vastaanottaja: tails-dev
Aihe: [Tails-dev] [PATCH tails-greeter] Reset field when a wrong passphrase has been tried
As the entered passphrase is hidden, there is no point in keeping the
current entry. Let's erase it and have users enter their whole
passphrase again.
---
 GdmGreeter/persistencewindow.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/GdmGreeter/persistencewindow.py b/GdmGreeter/persistencewindow.py
index 2c9e827..10e2b45 100644
--- a/GdmGreeter/persistencewindow.py
+++ b/GdmGreeter/persistencewindow.py
@@ -90,6 +90,7 @@ class PersistenceWindow(TranslatableWindow):
                     )
                 return True
             except GdmGreeter.errors.WrongPassphraseError:
+                self.entry_passphrase.set_text('')
                 self.warning_label.set_markup(_('<i>Wrong passphrase. Please try again.</i>'))
                 self.warning_area.show_all()
                 return False
-- 
1.7.2.5