{"action":"created","comment":{"url":"https://api.github.com/repos/allanhaywood/CS441/pulls/comments/89681993","pull_request_review_id":10223934,"id":89681993,"diff_hunk":"@@ -37,24 +37,36 @@ AccountManager::~AccountManager()//destructor\n  * @return true always as it will always call the database manager and insert the info\n  */\n \n-bool AccountManager::createAccount(QString &first, QString &last, QString &Email, QString &handle, QString &password)\n+bool AccountManager::createAccount(QString first, QString last, QString Email, QString handle, QString password)\n+{\\\n+return createAccount(first, last, Email, handle, password, false);\n+}\n+\n+bool AccountManager::createAccount(QString first, QString last, QString Email, QString handle, QString password, bool isAdmin)\n+{\n+        User thisUser = User(handle, first, last, Email, password, isAdmin);//add Password Hash when possibl\n+        DatabaseManagerSingleton::Instance().addUser(thisUser);\n+        referenceTodatabaseUser = DatabaseManagerSingleton::Instance().inspectUser(handle);\n+        return true;//reminant of previous code\n+}\n+\n+bool AccountManager::createAccount(User user)\n {\n-   User thisUser = User(handle, first, last, Email, password);//add Password Hash when possible\n-   typedef Singleton<DatabaseManager> DatabaseManagerSingleton;\n-   DatabaseManagerSingleton::Instance().addUser(thisUser);\n-   thisGuy=thisUser;\n-   return true;//reminant of previous code\n+    DatabaseManagerSingleton::Instance().addUser(user);\n+    referenceTodatabaseUser = DatabaseManagerSingleton::Instance().inspectUser(user.email);\n+    return true;","path":"PlotTalk/Src/accountmanager.cpp","position":36,"original_position":36,"commit_id":"54e1d06dca79df02f7fc69692ebf603c7e182d42","original_commit_id":"54e1d06dca79df02f7fc69692ebf603c7e182d42","user":{"login":"allanhaywood","id":11560359,"avatar_url":"https://avatars.githubusercontent.com/u/11560359?v=3","gravatar_id":"","url":"https://api.github.com/users/allanhaywood","html_url":"https://github.com/allanhaywood","followers_url":"https://api.github.com/users/allanhaywood/followers","following_url":"https://api.github.com/users/allanhaywood/following{/other_user}","gists_url":"https://api.github.com/users/allanhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/allanhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanhaywood/subscriptions","organizations_url":"https://api.github.com/users/allanhaywood/orgs","repos_url":"https://api.github.com/users/allanhaywood/repos","events_url":"https://api.github.com/users/allanhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/allanhaywood/received_events","type":"User","site_admin":false},"body":"Same as above.","created_at":"2016-11-27T02:36:15Z","updated_at":"2016-11-27T03:01:43Z","html_url":"https://github.com/allanhaywood/CS441/pull/46#discussion_r89681993","pull_request_url":"https://api.github.com/repos/allanhaywood/CS441/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/allanhaywood/CS441/pulls/comments/89681993"},"html":{"href":"https://github.com/allanhaywood/CS441/pull/46#discussion_r89681993"},"pull_request":{"href":"https://api.github.com/repos/allanhaywood/CS441/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/allanhaywood/CS441/pulls/46","id":94940816,"html_url":"https://github.com/allanhaywood/CS441/pull/46","diff_url":"https://github.com/allanhaywood/CS441/pull/46.diff","patch_url":"https://github.com/allanhaywood/CS441/pull/46.patch","issue_url":"https://api.github.com/repos/allanhaywood/CS441/issues/46","number":46,"state":"open","locked":false,"title":"Adminfunction","user":{"login":"joeyfreeman","id":10319540,"avatar_url":"https://avatars.githubusercontent.com/u/10319540?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyfreeman","html_url":"https://github.com/joeyfreeman","followers_url":"https://api.github.com/users/joeyfreeman/followers","following_url":"https://api.github.com/users/joeyfreeman/following{/other_user}","gists_url":"https://api.github.com/users/joeyfreeman/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyfreeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyfreeman/subscriptions","organizations_url":"https://api.github.com/users/joeyfreeman/orgs","repos_url":"https://api.github.com/users/joeyfreeman/repos","events_url":"https://api.github.com/users/joeyfreeman/events{/privacy}","received_events_url":"https://api.github.com/users/joeyfreeman/received_events","type":"User","site_admin":false},"body":"Submitted on behalf of Josh. Adds functionality to admin page.","created_at":"2016-11-23T03:36:57Z","updated_at":"2016-11-27T03:01:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27ac3b9ccd11112e204f1116b977fc34da8b14d4","assignee":{"login":"joeyfreeman","id":10319540,"avatar_url":"https://avatars.githubusercontent.com/u/10319540?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyfreeman","html_url":"https://github.com/joeyfreeman","followers_url":"https://api.github.com/users/joeyfreeman/followers","following_url":"https://api.github.com/users/joeyfreeman/following{/other_user}","gists_url":"https://api.github.com/users/joeyfreeman/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyfreeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyfreeman/subscriptions","organizations_url":"https://api.github.com/users/joeyfreeman/orgs","repos_url":"https://api.github.com/users/joeyfreeman/repos","events_url":"https://api.github.com/users/joeyfreeman/events{/privacy}","received_events_url":"https://api.github.com/users/joeyfreeman/received_events","type":"User","site_admin":false},"assignees":[{"login":"joeyfreeman","id":10319540,"avatar_url":"https://avatars.githubusercontent.com/u/10319540?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyfreeman","html_url":"https://github.com/joeyfreeman","followers_url":"https://api.github.com/users/joeyfreeman/followers","following_url":"https://api.github.com/users/joeyfreeman/following{/other_user}","gists_url":"https://api.github.com/users/joeyfreeman/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyfreeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyfreeman/subscriptions","organizations_url":"https://api.github.com/users/joeyfreeman/orgs","repos_url":"https://api.github.com/users/joeyfreeman/repos","events_url":"https://api.github.com/users/joeyfreeman/events{/privacy}","received_events_url":"https://api.github.com/users/joeyfreeman/received_events","type":"User","site_admin":false},{"login":"allanhaywood","id":11560359,"avatar_url":"https://avatars.githubusercontent.com/u/11560359?v=3","gravatar_id":"","url":"https://api.github.com/users/allanhaywood","html_url":"https://github.com/allanhaywood","followers_url":"https://api.github.com/users/allanhaywood/followers","following_url":"https://api.github.com/users/allanhaywood/following{/other_user}","gists_url":"https://api.github.com/users/allanhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/allanhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanhaywood/subscriptions","organizations_url":"https://api.github.com/users/allanhaywood/orgs","repos_url":"https://api.github.com/users/allanhaywood/repos","events_url":"https://api.github.com/users/allanhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/allanhaywood/received_events","type":"User","site_admin":false},{"login":"reave006","id":21341198,"avatar_url":"https://avatars.githubusercontent.com/u/21341198?v=3","gravatar_id":"","url":"https://api.github.com/users/reave006","html_url":"https://github.com/reave006","followers_url":"https://api.github.com/users/reave006/followers","following_url":"https://api.github.com/users/reave006/following{/other_user}","gists_url":"https://api.github.com/users/reave006/gists{/gist_id}","starred_url":"https://api.github.com/users/reave006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reave006/subscriptions","organizations_url":"https://api.github.com/users/reave006/orgs","repos_url":"https://api.github.com/users/reave006/repos","events_url":"https://api.github.com/users/reave006/events{/privacy}","received_events_url":"https://api.github.com/users/reave006/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/allanhaywood/CS441/pulls/46/commits","review_comments_url":"https://api.github.com/repos/allanhaywood/CS441/pulls/46/comments","review_comment_url":"https://api.github.com/repos/allanhaywood/CS441/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allanhaywood/CS441/issues/46/comments","statuses_url":"https://api.github.com/repos/allanhaywood/CS441/statuses/54e1d06dca79df02f7fc69692ebf603c7e182d42","head":{"label":"allanhaywood:adminfunction","ref":"adminfunction","sha":"54e1d06dca79df02f7fc69692ebf603c7e182d42","user":{"login":"allanhaywood","id":11560359,"avatar_url":"https://avatars.githubusercontent.com/u/11560359?v=3","gravatar_id":"","url":"https://api.github.com/users/allanhaywood","html_url":"https://github.com/allanhaywood","followers_url":"https://api.github.com/users/allanhaywood/followers","following_url":"https://api.github.com/users/allanhaywood/following{/other_user}","gists_url":"https://api.github.com/users/allanhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/allanhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanhaywood/subscriptions","organizations_url":"https://api.github.com/users/allanhaywood/orgs","repos_url":"https://api.github.com/users/allanhaywood/repos","events_url":"https://api.github.com/users/allanhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/allanhaywood/received_events","type":"User","site_admin":false},"repo":{"id":67254894,"name":"CS441","full_name":"allanhaywood/CS441","owner":{"login":"allanhaywood","id":11560359,"avatar_url":"https://avatars.githubusercontent.com/u/11560359?v=3","gravatar_id":"","url":"https://api.github.com/users/allanhaywood","html_url":"https://github.com/allanhaywood","followers_url":"https://api.github.com/users/allanhaywood/followers","following_url":"https://api.github.com/users/allanhaywood/following{/other_user}","gists_url":"https://api.github.com/users/allanhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/allanhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanhaywood/subscriptions","organizations_url":"https://api.github.com/users/allanhaywood/orgs","repos_url":"https://api.github.com/users/allanhaywood/repos","events_url":"https://api.github.com/users/allanhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/allanhaywood/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allanhaywood/CS441","description":"Project for Fall 2016 Software Engineering course","fork":false,"url":"https://api.github.com/repos/allanhaywood/CS441","forks_url":"https://api.github.com/repos/allanhaywood/CS441/forks","keys_url":"https://api.github.com/repos/allanhaywood/CS441/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allanhaywood/CS441/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allanhaywood/CS441/teams","hooks_url":"https://api.github.com/repos/allanhaywood/CS441/hooks","issue_events_url":"https://api.github.com/repos/allanhaywood/CS441/issues/events{/number}","events_url":"https://api.github.com/repos/allanhaywood/CS441/events","assignees_url":"https://api.github.com/repos/allanhaywood/CS441/assignees{/user}","branches_url":"https://api.github.com/repos/allanhaywood/CS441/branches{/branch}","tags_url":"https://api.github.com/repos/allanhaywood/CS441/tags","blobs_url":"https://api.github.com/repos/allanhaywood/CS441/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allanhaywood/CS441/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allanhaywood/CS441/git/refs{/sha}","trees_url":"https://api.github.com/repos/allanhaywood/CS441/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allanhaywood/CS441/statuses/{sha}","languages_url":"https://api.github.com/repos/allanhaywood/CS441/languages","stargazers_url":"https://api.github.com/repos/allanhaywood/CS441/stargazers","contributors_url":"https://api.github.com/repos/allanhaywood/CS441/contributors","subscribers_url":"https://api.github.com/repos/allanhaywood/CS441/subscribers","subscription_url":"https://api.github.com/repos/allanhaywood/CS441/subscription","commits_url":"https://api.github.com/repos/allanhaywood/CS441/commits{/sha}","git_commits_url":"https://api.github.com/repos/allanhaywood/CS441/git/commits{/sha}","comments_url":"https://api.github.com/repos/allanhaywood/CS441/comments{/number}","issue_comment_url":"https://api.github.com/repos/allanhaywood/CS441/issues/comments{/number}","contents_url":"https://api.github.com/repos/allanhaywood/CS441/contents/{+path}","compare_url":"https://api.github.com/repos/allanhaywood/CS441/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allanhaywood/CS441/merges","archive_url":"https://api.github.com/repos/allanhaywood/CS441/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allanhaywood/CS441/downloads","issues_url":"https://api.github.com/repos/allanhaywood/CS441/issues{/number}","pulls_url":"https://api.github.com/repos/allanhaywood/CS441/pulls{/number}","milestones_url":"https://api.github.com/repos/allanhaywood/CS441/milestones{/number}","notifications_url":"https://api.github.com/repos/allanhaywood/CS441/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allanhaywood/CS441/labels{/name}","releases_url":"https://api.github.com/repos/allanhaywood/CS441/releases{/id}","deployments_url":"https://api.github.com/repos/allanhaywood/CS441/deployments","created_at":"2016-09-02T21:07:44Z","updated_at":"2016-10-31T00:50:47Z","pushed_at":"2016-11-26T17:57:54Z","git_url":"git://github.com/allanhaywood/CS441.git","ssh_url":"git@github.com:allanhaywood/CS441.git","clone_url":"https://github.com/allanhaywood/CS441.git","svn_url":"https://github.com/allanhaywood/CS441","homepage":null,"size":834,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"allanhaywood:master","ref":"master","sha":"9d1701d82141e7eb79bb051aef73730d3f9f3b0a","user":{"login":"allanhaywood","id":11560359,"avatar_url":"https://avatars.githubusercontent.com/u/11560359?v=3","gravatar_id":"","url":"https://api.github.com/users/allanhaywood","html_url":"https://github.com/allanhaywood","followers_url":"https://api.github.com/users/allanhaywood/followers","following_url":"https://api.github.com/users/allanhaywood/following{/other_user}","gists_url":"https://api.github.com/users/allanhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/allanhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanhaywood/subscriptions","organizations_url":"https://api.github.com/users/allanhaywood/orgs","repos_url":"https://api.github.com/users/allanhaywood/repos","events_url":"https://api.github.com/users/allanhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/allanhaywood/received_events","type":"User","site_admin":false},"repo":{"id":67254894,"name":"CS441","full_name":"allanhaywood/CS441","owner":{"login":"allanhaywood","id":11560359,"avatar_url":"https://avatars.githubusercontent.com/u/11560359?v=3","gravatar_id":"","url":"https://api.github.com/users/allanhaywood","html_url":"https://github.com/allanhaywood","followers_url":"https://api.github.com/users/allanhaywood/followers","following_url":"https://api.github.com/users/allanhaywood/following{/other_user}","gists_url":"https://api.github.com/users/allanhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/allanhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanhaywood/subscriptions","organizations_url":"https://api.github.com/users/allanhaywood/orgs","repos_url":"https://api.github.com/users/allanhaywood/repos","events_url":"https://api.github.com/users/allanhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/allanhaywood/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allanhaywood/CS441","description":"Project for Fall 2016 Software Engineering course","fork":false,"url":"https://api.github.com/repos/allanhaywood/CS441","forks_url":"https://api.github.com/repos/allanhaywood/CS441/forks","keys_url":"https://api.github.com/repos/allanhaywood/CS441/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allanhaywood/CS441/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allanhaywood/CS441/teams","hooks_url":"https://api.github.com/repos/allanhaywood/CS441/hooks","issue_events_url":"https://api.github.com/repos/allanhaywood/CS441/issues/events{/number}","events_url":"https://api.github.com/repos/allanhaywood/CS441/events","assignees_url":"https://api.github.com/repos/allanhaywood/CS441/assignees{/user}","branches_url":"https://api.github.com/repos/allanhaywood/CS441/branches{/branch}","tags_url":"https://api.github.com/repos/allanhaywood/CS441/tags","blobs_url":"https://api.github.com/repos/allanhaywood/CS441/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allanhaywood/CS441/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allanhaywood/CS441/git/refs{/sha}","trees_url":"https://api.github.com/repos/allanhaywood/CS441/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allanhaywood/CS441/statuses/{sha}","languages_url":"https://api.github.com/repos/allanhaywood/CS441/languages","stargazers_url":"https://api.github.com/repos/allanhaywood/CS441/stargazers","contributors_url":"https://api.github.com/repos/allanhaywood/CS441/contributors","subscribers_url":"https://api.github.com/repos/allanhaywood/CS441/subscribers","subscription_url":"https://api.github.com/repos/allanhaywood/CS441/subscription","commits_url":"https://api.github.com/repos/allanhaywood/CS441/commits{/sha}","git_commits_url":"https://api.github.com/repos/allanhaywood/CS441/git/commits{/sha}","comments_url":"https://api.github.com/repos/allanhaywood/CS441/comments{/number}","issue_comment_url":"https://api.github.com/repos/allanhaywood/CS441/issues/comments{/number}","contents_url":"https://api.github.com/repos/allanhaywood/CS441/contents/{+path}","compare_url":"https://api.github.com/repos/allanhaywood/CS441/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allanhaywood/CS441/merges","archive_url":"https://api.github.com/repos/allanhaywood/CS441/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allanhaywood/CS441/downloads","issues_url":"https://api.github.com/repos/allanhaywood/CS441/issues{/number}","pulls_url":"https://api.github.com/repos/allanhaywood/CS441/pulls{/number}","milestones_url":"https://api.github.com/repos/allanhaywood/CS441/milestones{/number}","notifications_url":"https://api.github.com/repos/allanhaywood/CS441/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allanhaywood/CS441/labels{/name}","releases_url":"https://api.github.com/repos/allanhaywood/CS441/releases{/id}","deployments_url":"https://api.github.com/repos/allanhaywood/CS441/deployments","created_at":"2016-09-02T21:07:44Z","updated_at":"2016-10-31T00:50:47Z","pushed_at":"2016-11-26T17:57:54Z","git_url":"git://github.com/allanhaywood/CS441.git","ssh_url":"git@github.com:allanhaywood/CS441.git","clone_url":"https://github.com/allanhaywood/CS441.git","svn_url":"https://github.com/allanhaywood/CS441","homepage":null,"size":834,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/allanhaywood/CS441/pulls/46"},"html":{"href":"https://github.com/allanhaywood/CS441/pull/46"},"issue":{"href":"https://api.github.com/repos/allanhaywood/CS441/issues/46"},"comments":{"href":"https://api.github.com/repos/allanhaywood/CS441/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/allanhaywood/CS441/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/allanhaywood/CS441/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allanhaywood/CS441/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/allanhaywood/CS441/statuses/54e1d06dca79df02f7fc69692ebf603c7e182d42"}}}}
{"actor":{"display_login":"allanhaywood"}}