mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 05:15:10 +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"
|
log_operation "${MOLE_CURRENT_COMMAND:-clean}" "FAILED" "$path" "readonly filesystem"
|
||||||
return "$MOLE_ERR_READONLY_FS"
|
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"
|
log_operation "${MOLE_CURRENT_COMMAND:-clean}" "FAILED" "$path" "auth failed"
|
||||||
return "$MOLE_ERR_AUTH_FAILED"
|
return "$MOLE_ERR_AUTH_FAILED"
|
||||||
;;
|
;;
|
||||||
@@ -536,7 +536,7 @@ diagnose_removal_failure() {
|
|||||||
"$MOLE_ERR_AUTH_FAILED")
|
"$MOLE_ERR_AUTH_FAILED")
|
||||||
reason="authentication failed"
|
reason="authentication failed"
|
||||||
if [[ -f "$touchid_file" ]] && grep -q "pam_tid.so" "$touchid_file" 2> /dev/null; then
|
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
|
else
|
||||||
suggestion="Try 'mole touchid' to enable fingerprint auth"
|
suggestion="Try 'mole touchid' to enable fingerprint auth"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user