Re: [Tails-dev] #5594: tails-greeter: better administration …

Üzenet törlése

Válasz az üzenetre
Szerző: intrigeri
Dátum:  
Címzett: The Tails public development discussion list
Tárgy: Re: [Tails-dev] #5594: tails-greeter: better administration password UI
anonym wrote (08 Dec 2014 09:16:06 GMT) :
> I guess what you want is that whenever one of the password fields
> are modified we do something like:


>     if len(auth_password) == 0 and len(test_password) == 0:
>         self.warning_area_pw_mismatch.hide()
>         self.warning_area_pw_match.hide()
>     elif auth_password == test_password:
>         self.warning_area_pw_mismatch.hide()
>         self.warning_area_pw_match.show()
>     elif auth_password != test_password:
>         self.warning_area_pw_mismatch.show()
>         self.warning_area_pw_match.hide()


> Ok?


ENOTIME to check this right now, but the example implementation I've
been refering to lives in the update_passphrase_ui sub, in
lib/Tails/Persistence/Step/Bootstrap.pm, in our
persistence-setup repo.

Cheers!
--
intrigeri