authPrompt: Connect signals to both text and password entries

This is a regression from the transition to password entry. Both
entries need to be connected to the relevant signals, otherwise
username-based login won't ever work.

Connect both the text and the password entries.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
This commit is contained in:
Georges Basile Stavracas Neto 2020-02-06 17:27:20 -03:00 committed by Florian Müllner
parent db4dfd8fa5
commit 6daeb048af

View File

@ -159,15 +159,17 @@ var AuthPrompt = GObject.registerClass({
this._mainBox.add_child(this._entry); this._mainBox.add_child(this._entry);
this._entry.grab_key_focus(); this._entry.grab_key_focus();
this._entry.clutter_text.connect('text-changed', () => { [this._textEntry, this._passwordEntry].forEach(entry => {
entry.clutter_text.connect('text-changed', () => {
if (!this._userVerifier.hasPendingMessages) if (!this._userVerifier.hasPendingMessages)
this._fadeOutMessage(); this._fadeOutMessage();
}); });
this._entry.clutter_text.connect('activate', () => { entry.clutter_text.connect('activate', () => {
if (this._entry.reactive) if (entry.reactive)
this.emit('next'); this.emit('next');
}); });
});
this._defaultButtonWell = new St.Widget({ this._defaultButtonWell = new St.Widget({
layout_manager: new Clutter.BinLayout(), layout_manager: new Clutter.BinLayout(),