mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 09:46:44 +00:00
fix: update authentication failure messages for clarity
This commit is contained in:
@@ -383,7 +383,7 @@ safe_sudo_remove() {
|
||||
log_operation "${MOLE_CURRENT_COMMAND:-clean}" "FAILED" "$path" "readonly filesystem"
|
||||
return "$MOLE_ERR_READONLY_FS"
|
||||
;;
|
||||
*"Sorry, try again"* | *"incorrect password"*)
|
||||
*"Sorry, try again"* | *"incorrect passphrase"* | *"incorrect credentials"*)
|
||||
log_operation "${MOLE_CURRENT_COMMAND:-clean}" "FAILED" "$path" "auth failed"
|
||||
return "$MOLE_ERR_AUTH_FAILED"
|
||||
;;
|
||||
@@ -536,7 +536,7 @@ diagnose_removal_failure() {
|
||||
"$MOLE_ERR_AUTH_FAILED")
|
||||
reason="authentication failed"
|
||||
if [[ -f "$touchid_file" ]] && grep -q "pam_tid.so" "$touchid_file" 2> /dev/null; then
|
||||
suggestion="Check your password or restart Terminal"
|
||||
suggestion="Check your credentials or restart Terminal"
|
||||
else
|
||||
suggestion="Try 'mole touchid' to enable fingerprint auth"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user