{"action":"created","issue":{"url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/48","labels_url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/48/comments","events_url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/48/events","html_url":"https://github.com/ansible-semaphore/semaphore/issues/48","id":112453667,"number":48,"title":"Default admin user gets recreated even if deleted from panel","user":{"login":"brodul","id":204514,"avatar_url":"https://avatars.githubusercontent.com/u/204514?v=3","gravatar_id":"","url":"https://api.github.com/users/brodul","html_url":"https://github.com/brodul","followers_url":"https://api.github.com/users/brodul/followers","following_url":"https://api.github.com/users/brodul/following{/other_user}","gists_url":"https://api.github.com/users/brodul/gists{/gist_id}","starred_url":"https://api.github.com/users/brodul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brodul/subscriptions","organizations_url":"https://api.github.com/users/brodul/orgs","repos_url":"https://api.github.com/users/brodul/repos","events_url":"https://api.github.com/users/brodul/events{/privacy}","received_events_url":"https://api.github.com/users/brodul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible-semaphore/semaphore/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ansible-semaphore/semaphore/milestones/1","html_url":"https://github.com/ansible-semaphore/semaphore/milestones/v0.3.0","labels_url":"https://api.github.com/repos/ansible-semaphore/semaphore/milestones/1/labels","id":1347812,"number":1,"title":"v0.3.0","description":"","creator":{"login":"matejkramny","id":797608,"avatar_url":"https://avatars.githubusercontent.com/u/797608?v=3","gravatar_id":"","url":"https://api.github.com/users/matejkramny","html_url":"https://github.com/matejkramny","followers_url":"https://api.github.com/users/matejkramny/followers","following_url":"https://api.github.com/users/matejkramny/following{/other_user}","gists_url":"https://api.github.com/users/matejkramny/gists{/gist_id}","starred_url":"https://api.github.com/users/matejkramny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matejkramny/subscriptions","organizations_url":"https://api.github.com/users/matejkramny/orgs","repos_url":"https://api.github.com/users/matejkramny/repos","events_url":"https://api.github.com/users/matejkramny/events{/privacy}","received_events_url":"https://api.github.com/users/matejkramny/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-10-09T19:39:55Z","updated_at":"2015-10-21T11:00:38Z","due_on":"2015-10-31T00:00:00Z","closed_at":null},"comments":3,"created_at":"2015-10-20T20:29:49Z","updated_at":"2015-10-22T09:59:18Z","closed_at":null,"body":"Default admin user gets recreated even if deleted from panel\r\n\r\nhttps://github.com/ansible-semaphore/semaphore/blob/master/lib/config.js#L66"},"comment":{"url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/comments/150166449","html_url":"https://github.com/ansible-semaphore/semaphore/issues/48#issuecomment-150166449","issue_url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/48","id":150166449,"user":{"login":"matejkramny","id":797608,"avatar_url":"https://avatars.githubusercontent.com/u/797608?v=3","gravatar_id":"","url":"https://api.github.com/users/matejkramny","html_url":"https://github.com/matejkramny","followers_url":"https://api.github.com/users/matejkramny/followers","following_url":"https://api.github.com/users/matejkramny/following{/other_user}","gists_url":"https://api.github.com/users/matejkramny/gists{/gist_id}","starred_url":"https://api.github.com/users/matejkramny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matejkramny/subscriptions","organizations_url":"https://api.github.com/users/matejkramny/orgs","repos_url":"https://api.github.com/users/matejkramny/repos","events_url":"https://api.github.com/users/matejkramny/events{/privacy}","received_events_url":"https://api.github.com/users/matejkramny/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T09:59:18Z","updated_at":"2015-10-22T09:59:18Z","body":"In config.js, have a similar lookup (replacing the current one) for existing users. If none can be found, create an admin account.\r\n\r\nThis way an admin is still created but it won't stand in the way if you decide to delete him."}}