From 91b8cbd178976c034cb2f9098e100a485c62322d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 4 May 2018 13:02:19 +0200 Subject: Use RLS/pam_x2go.so API v5. The PAM prompt now queries "remote command:", not "x2gosession:". --- src/user-list.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/user-list.vala b/src/user-list.vala index 6ce5efe..3c4b2d2 100644 --- a/src/user-list.vala +++ b/src/user-list.vala @@ -22,7 +22,7 @@ int remote_server_field_sort_function (RemoteServerField? item1, RemoteServerField? item2) { - string[] sorted_fields = { "domain", "x2gosession" , "username", "email", "password"}; + string[] sorted_fields = { "domain", "command" , "username", "email", "password"}; foreach (var field in sorted_fields) { if (item1.type == field) @@ -704,7 +704,7 @@ public class UserList : GreeterList entry.text = default_value; widget = entry; } - else if (field.type == "x2gosession") + else if (field.type == "command") { var prompt = add_prompt (_("X2Go Session:")); prompt.text = default_value; @@ -1118,7 +1118,7 @@ public class UserList : GreeterList var answer = field != null ? field.text : ""; ArcticaGreeter.singleton.respond (answer); } - else if (text == "x2gosession:") + else if (text == "remote command:") { Gtk.Entry field = current_remote_fields.get ("x2gosession") as Gtk.Entry; var answer = field != null ? field.text : ""; -- cgit v1.2.3