diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-04 15:25:46 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-04 15:25:46 +0200 |
commit | eed9d645552c7dca8b2cf0237d67a6affdf025a7 (patch) | |
tree | ce1013a9b48f0d035fe911576ae689e9d0effc7b /src/user-list.vala | |
parent | 9ff8e0945acf3815b6a0570920d7352efb929291 (diff) | |
download | arctica-greeter-eed9d645552c7dca8b2cf0237d67a6affdf025a7.tar.gz arctica-greeter-eed9d645552c7dca8b2cf0237d67a6affdf025a7.tar.bz2 arctica-greeter-eed9d645552c7dca8b2cf0237d67a6affdf025a7.zip |
src/user-list.vala: Obtain PAM_X2GO prompts from public API in security/pam.x2go.h.
Diffstat (limited to 'src/user-list.vala')
-rw-r--r-- | src/user-list.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user-list.vala b/src/user-list.vala index 9b0f403..443dec8 100644 --- a/src/user-list.vala +++ b/src/user-list.vala @@ -1095,19 +1095,19 @@ public class UserList : GreeterList { if (selected_entry.id.has_prefix ("*remote_login")) { - if (text == "remote login:") + if ((text == pam_x2go.PROMPT_USER) || (text == "remote login:")) { Gtk.Entry field = current_remote_fields.get ("username") as Gtk.Entry; var answer = field != null ? field.text : ""; ArcticaGreeter.singleton.respond (answer); } - else if (text == "password:") + else if ((text == pam_x2go.PROMPT_PASSWORD) || (text == "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 == "remote host:") + else if ((text == pam_x2go.PROMPT_HOST) || (text == "remote host:")) { var answer = url_from_remote_loding_server_list_name (selected_entry.id); ArcticaGreeter.singleton.respond (answer); @@ -1118,7 +1118,7 @@ public class UserList : GreeterList var answer = field != null ? field.text : ""; ArcticaGreeter.singleton.respond (answer); } - else if (text == "remote command:") + else if (text == pam_x2go.PROMPT_COMMAND) { Gtk.Entry field = current_remote_fields.get ("command") as Gtk.Entry; var answer = field != null ? field.text : ""; |