[gnome-shell/uajain/adapt-user-avatar-part2: 21/26] authPrompt: Remove colons from questions
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2: 21/26] authPrompt: Remove colons from questions
- Date: Tue, 11 Feb 2020 16:11:53 +0000 (UTC)
commit ea220fb9779f33b107f4092e35b94ac94d648965
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 10 15:15:16 2020 -0300
authPrompt: Remove colons from questions
Unfortunately, the question that is displayed comes directly
from PAM. It usually is just "Password:", which comes from
pam-unix, but other questions can be set, usually with the
colons, since they are crafted with a CLI workflow in mind.
Manually drop the colons from questions asked by PAM. This
is also done by the PolKit agent, which shows how the stack
is fragile, but it's what we have for now.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
js/gdm/authPrompt.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 974f517783..a9e1fc93fc 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -209,7 +209,8 @@ var AuthPrompt = GObject.registerClass({
}
this._updateEntry(secret);
- this.setQuestion(question);
+ // HACK: the question comes directly from PAM
+ this.setQuestion(question.replace(':', '').trim());
this.updateSensitivity(true);
this.emit('prompted');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]