{"action":"created","issue":{"url":"https://api.github.com/repos/Program-O/Program-O/issues/402","repository_url":"https://api.github.com/repos/Program-O/Program-O","labels_url":"https://api.github.com/repos/Program-O/Program-O/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/Program-O/Program-O/issues/402/comments","events_url":"https://api.github.com/repos/Program-O/Program-O/issues/402/events","html_url":"https://github.com/Program-O/Program-O/issues/402","id":314500147,"number":402,"title":"FORMS username not set in users table","user":{"login":"OverlanAI","id":36704725,"avatar_url":"https://avatars1.githubusercontent.com/u/36704725?v=4","gravatar_id":"","url":"https://api.github.com/users/OverlanAI","html_url":"https://github.com/OverlanAI","followers_url":"https://api.github.com/users/OverlanAI/followers","following_url":"https://api.github.com/users/OverlanAI/following{/other_user}","gists_url":"https://api.github.com/users/OverlanAI/gists{/gist_id}","starred_url":"https://api.github.com/users/OverlanAI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OverlanAI/subscriptions","organizations_url":"https://api.github.com/users/OverlanAI/orgs","repos_url":"https://api.github.com/users/OverlanAI/repos","events_url":"https://api.github.com/users/OverlanAI/events{/privacy}","received_events_url":"https://api.github.com/users/OverlanAI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-16T04:44:28Z","updated_at":"2018-04-16T10:01:26Z","closed_at":null,"author_association":"NONE","body":"When supplying username via HTTP post The user name remains seeker in USERS table.\r\nsession_id works correctly however.\r\n\r\ntnx"},"comment":{"url":"https://api.github.com/repos/Program-O/Program-O/issues/comments/381547039","html_url":"https://github.com/Program-O/Program-O/issues/402#issuecomment-381547039","issue_url":"https://api.github.com/repos/Program-O/Program-O/issues/402","id":381547039,"user":{"login":"Dave-Morton","id":1443637,"avatar_url":"https://avatars2.githubusercontent.com/u/1443637?v=4","gravatar_id":"","url":"https://api.github.com/users/Dave-Morton","html_url":"https://github.com/Dave-Morton","followers_url":"https://api.github.com/users/Dave-Morton/followers","following_url":"https://api.github.com/users/Dave-Morton/following{/other_user}","gists_url":"https://api.github.com/users/Dave-Morton/gists{/gist_id}","starred_url":"https://api.github.com/users/Dave-Morton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dave-Morton/subscriptions","organizations_url":"https://api.github.com/users/Dave-Morton/orgs","repos_url":"https://api.github.com/users/Dave-Morton/repos","events_url":"https://api.github.com/users/Dave-Morton/events{/privacy}","received_events_url":"https://api.github.com/users/Dave-Morton/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T10:01:26Z","updated_at":"2018-04-16T10:01:26Z","author_association":"COLLABORATOR","body":"I've taken a look at this, and it seems there's a bug (of sorts) with it. If you look in the file chatbot/conversation_start.php, right around line 200 - 202, you should find the following code:\r\n\r\n```\r\n    if (!empty($form_vars['name']))\r\n    {\r\n        $convoArr['conversation']['user_name'] = $user_name = $form_vars['name'];\r\n    }\r\n```\r\nTry replacing it with the following and see if it helps:\r\n\r\n```\r\n    if (!empty($form_vars['name']))\r\n    {\r\n        $user_name = $form_vars['name'];\r\n        $convoArr['conversation']['user_name'] = $user_name;\r\n        $convoArr['client_properties']['name'] = $user_name;\r\n    }\r\n```\r\n\r\nTesting on the test GUI (the one I use to develop, based on `test_gui.php`, in the JSON GUI folder, but with some modifications to test using a 'name' field) shows this bit of code works right off the bat, with no prior vollies required. "}}
{"actor":{"display_login":"Dave-Morton"}}