From 75df243fcd4e920843ec17035370ce7477cadf78 Mon Sep 17 00:00:00 2001 From: Christoph von Gabler-Sahm Date: Fri, 6 May 2022 10:17:37 +0200 Subject: [PATCH 1/5] Added option --max-password-attempts which can be set to literal "infinity" to prevent canceling. Also fixes accidental canceling by supplying an empty password, removes superfluous dialogs when password is not correct as well as shows the proper "password is not correct" message after the checking cycle. --- erase-install.sh | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/erase-install.sh b/erase-install.sh index 3dce067..9690e87 100755 --- a/erase-install.sh +++ b/erase-install.sh @@ -212,7 +212,7 @@ dialog_user_invalid_fr="Ce compte ne peut pas être utilisé pour effectuer la r # Dialogue localizations - invalid password dialog_invalid_password_en="ERROR: The password entered is NOT the login password for" -dialog_invalid_password_de="ERROR: Das eingegebene Kennwort ist NICHT das Anmeldekennwort für" +dialog_invalid_password_de="ERROR: Das eingegebene Passwort ist NICHT das Anmeldepasswort für" dialog_invalid_password_nl="FOUT: Het ingevoerde wachtwoord is NIET het inlogwachtwoord voor" dialog_invalid_password_fr="ERREUR : Le mot de passe entré n'est PAS le mot de passe de connexion pour" @@ -265,9 +265,15 @@ dialog_not_volume_owner=dialog_not_volume_owner_${user_language} ask_for_password() { # required for Silicon Macs - /bin/launchctl asuser "$current_uid" /usr/bin/osascript <