From 879b9e62cfc2c27e8567930e881affefbfcef1d6 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 4 May 2018 22:14:00 +0200 Subject: src/user-list.vala: Obtain PAM_FREERDP2 prompts from public API in security/pam-freerdp2.h. --- src/user-list.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/user-list.vala') diff --git a/src/user-list.vala b/src/user-list.vala index 443dec8..a87612e 100644 --- a/src/user-list.vala +++ b/src/user-list.vala @@ -1095,24 +1095,24 @@ public class UserList : GreeterList { if (selected_entry.id.has_prefix ("*remote_login")) { - if ((text == pam_x2go.PROMPT_USER) || (text == "remote login:")) + if ((text == pam_x2go.PROMPT_USER) || (text == pam_freerdp2.PROMPT_USER)) { Gtk.Entry field = current_remote_fields.get ("username") as Gtk.Entry; var answer = field != null ? field.text : ""; ArcticaGreeter.singleton.respond (answer); } - else if ((text == pam_x2go.PROMPT_PASSWORD) || (text == "password:")) + else if ((text == pam_x2go.PROMPT_PASSWORD) || (text == pam_freerdp2.PROMPT_PASSWORD)) { Gtk.Entry field = current_remote_fields.get ("password") as Gtk.Entry; var answer = field != null ? field.text : ""; ArcticaGreeter.singleton.respond (answer); } - else if ((text == pam_x2go.PROMPT_HOST) || (text == "remote host:")) + else if ((text == pam_x2go.PROMPT_HOST) || (text == pam_freerdp2.PROMPT_HOST)) { var answer = url_from_remote_loding_server_list_name (selected_entry.id); ArcticaGreeter.singleton.respond (answer); } - else if (text == "domain:") + else if (text == pam_freerdp2.PROMPT_DOMAIN) { Gtk.Entry field = current_remote_fields.get ("domain") as Gtk.Entry; var answer = field != null ? field.text : ""; -- cgit v1.2.3