diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_faillock/pam_faillock.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/pam_faillock/pam_faillock.c b/modules/pam_faillock/pam_faillock.c index 98aaa6f7..94c175b4 100644 --- a/modules/pam_faillock/pam_faillock.c +++ b/modules/pam_faillock/pam_faillock.c @@ -646,17 +646,13 @@ faillock_message(pam_handle_t *pamh, struct options *opts) left = opts->latest_time + opts->unlock_time - opts->now; } + pam_info(pamh, _("The account is locked due to %u failed logins."), + (unsigned int)opts->failures); if (left > 0) { left = (left + 59)/60; /* minutes */ - pam_info(pamh, _("Account temporarily locked due to %d failed logins"), - opts->failures); pam_info(pamh, _("(%d minutes left to unlock)"), (int)left); } - else { - pam_info(pamh, _("Account locked due to %d failed logins"), - opts->failures); - } } } |