[gdm: 1/3] session-worker: Use a clearer message on max retries error
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm: 1/3] session-worker: Use a clearer message on max retries error
- Date: Mon, 21 Dec 2020 15:21:30 +0000 (UTC)
commit 39bf1df0620f4942a843f747474d78f13d9983ea
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date: Tue Nov 24 18:11:49 2020 +0100
session-worker: Use a clearer message on max retries error
Some PAM modules we use by default (such as the fingerprint one)
supports this, so in case we receive a max-retries error we should
inform the user with some clearer message.
daemon/gdm-session-worker.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 36c3e5dfd..8d9aca786 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -757,6 +757,9 @@ get_friendly_error_message (int error_code)
return _("Your account was given a time limit that’s now passed.");
break;
+ case PAM_MAXTRIES:
+ return _("You reached the maximum authentication attempts, please try another method");
+
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]