{"action":"created","issue":{"url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/974","repository_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth","labels_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/974/comments","events_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/974/events","html_url":"https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/974","id":172862084,"number":974,"title":"can't register new user, throws error","user":{"login":"ngangchill","id":4242225,"avatar_url":"https://avatars.githubusercontent.com/u/4242225?v=3","gravatar_id":"","url":"https://api.github.com/users/ngangchill","html_url":"https://github.com/ngangchill","followers_url":"https://api.github.com/users/ngangchill/followers","following_url":"https://api.github.com/users/ngangchill/following{/other_user}","gists_url":"https://api.github.com/users/ngangchill/gists{/gist_id}","starred_url":"https://api.github.com/users/ngangchill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngangchill/subscriptions","organizations_url":"https://api.github.com/users/ngangchill/orgs","repos_url":"https://api.github.com/users/ngangchill/repos","events_url":"https://api.github.com/users/ngangchill/events{/privacy}","received_events_url":"https://api.github.com/users/ngangchill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-24T04:29:24Z","updated_at":"2016-08-24T14:55:54Z","closed_at":null,"body":"## Controller\r\n\r\n    $username = 'benedmunds';\r\n\t\t$password = '12345678';\r\n\t\t$email = 'ben.edmunds@gmail.com';\r\n\t\t$additional_data = array(\r\n\t\t\t\t\t\t\t\t'first_name' => 'Ben',\r\n\t\t\t\t\t\t\t\t'last_name' => 'Edmunds',\r\n\t\t\t\t\t\t\t\t);\r\n\t\t$group = array('1'); // Sets user to admin.\r\n\r\n\t\t$this->ion_auth->register($username, $password, $email, $additional_data, $group);\r\n\r\nit show error:\r\n      \r\n      ERROR - 2016-08-24 04:24:45 --> Query error: NOT NULL constraint failed: users.username - Invalid query: INSERT INTO \"users\" (\"first_name\", \"last_name\", \"email\", \"password\", \"ip_address\", \"created_on\", \"active\") VALUES ('Ben', 'Edmunds', 'ben.edmunds@gmail.com', '$2y$08$YXOxw8W.I25bCfAcdnDjtec0X9KDAO0SFO6yrB/JHPFyW91J1xFJ6', '119.30.45.247', 1472012685, 1)\r\n\r\n\r\n\r\nif i try with Auth.php controller, it also shows error:\r\n\r\n    ERROR - 2016-08-24 04:28:37 --> Query error: NOT NULL constraint failed: users.username - Invalid query: INSERT INTO \"users\" (\"first_name\", \"last_name\", \"company\", \"phone\", \"email\", \"password\", \"ip_address\", \"created_on\", \"active\") VALUES ('demoxyz', 'lastxzy', 'abcde', '889957677676', 'asdssdss@gmail.com', '$2y$08$4l21ISSku0Lz.utHl2g.ruTvSh2cyKCYReRhUNDlFaEb5GyRxems6', '119.30.45.247', 1472012917, 1)\r\n"},"comment":{"url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/comments/242093810","html_url":"https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/974#issuecomment-242093810","issue_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/974","id":242093810,"user":{"login":"ngangchill","id":4242225,"avatar_url":"https://avatars.githubusercontent.com/u/4242225?v=3","gravatar_id":"","url":"https://api.github.com/users/ngangchill","html_url":"https://github.com/ngangchill","followers_url":"https://api.github.com/users/ngangchill/followers","following_url":"https://api.github.com/users/ngangchill/following{/other_user}","gists_url":"https://api.github.com/users/ngangchill/gists{/gist_id}","starred_url":"https://api.github.com/users/ngangchill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngangchill/subscriptions","organizations_url":"https://api.github.com/users/ngangchill/orgs","repos_url":"https://api.github.com/users/ngangchill/repos","events_url":"https://api.github.com/users/ngangchill/events{/privacy}","received_events_url":"https://api.github.com/users/ngangchill/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T14:55:54Z","updated_at":"2016-08-24T14:55:54Z","body":"$this->load->library(array('ion_auth','form_validation'));\r\n\t\t//echo '<pre>';\r\n\t\t$username = 'benedmunds';\r\n\t\t$password = '12345678';\r\n\t\t$email = 'ben.edmunds@gmail.com';\r\n\t\t$additional_data = array(\r\n\t\t\t\t\t\t\t\t'first_name' => 'Ben',\r\n\t\t\t\t\t\t\t\t'last_name' => 'Edmunds',\r\n\t\t\t\t\t\t\t\t);\r\n\t\t$group = array('1'); // Sets user to admin.\r\n\r\n\t\t$this->ion_auth->register($username, $password, $email, $additional_data, $group);"}}
{"actor":{"display_login":"ngangchill"}}