{"action":"created","comment":{"url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/comments/23554298","id":23554298,"diff_hunk":"@@ -1,643 +1,904 @@\n 'use strict';\n \n-var passport = require('passport'),\n-\tpath = require('path'),\n-\tLocalStrategy = require('passport-local').Strategy,\n-\tFacebookStrategy = require('passport-facebook').Strategy,\n-\tInstagramStrategy = require('passport-instagram').Strategy,\n-\tTwitterStrategy = require('passport-twitter').Strategy,\n-\tfs = require('fs-extra'),\n-\tUtilities = require('periodicjs.core.utilities'),\n-\tControllerHelper = require('periodicjs.core.controller'),\n-\tExtensions = require('periodicjs.core.extensions'),\n-\tCoreExtension = new Extensions({\n-\t\textensionFilePath: path.resolve(process.cwd(), './content/config/extensions.json')\n-\t}),\n-\tauthLoginPath = '/auth/login/',\n-\tauthLogoutPath = '/',\n-\tauthLoggedInHomepage = '/p-admin',\n-\tmerge = require('utils-merge'),\n-\tCoreUtilities,\n-\tCoreController,\n-\tappSettings,\n-\tmongoose,\n-\tUser,\n-\tlogger,\n-\tconfigError,\n-\tloginExtSettingsFile,\n-\tloginExtSettings;\n+var passport        = require('passport'),\n+path              = require('path'),\n+jwt               = require('jsonwebtoken'),\n+async             = require('async'),\n+LocalStrategy     = require('passport-local').Strategy,\n+FacebookStrategy  = require('passport-facebook').Strategy,\n+InstagramStrategy = require('passport-instagram').Strategy,\n+TwitterStrategy   = require('passport-twitter').Strategy,\n+fs                = require('fs-extra'),\n+Utilities         = require('periodicjs.core.utilities'),\n+ControllerHelper  = require('periodicjs.core.controller'),\n+Extensions        = require('periodicjs.core.extensions'),\n+bcrypt            = require('bcrypt'),\n+CoreMailer = require('periodicjs.core.mailer'),\n+tokenConfig       = require('../config/token'),\n+CoreExtension     = new Extensions({\n+  extensionFilePath: path.resolve(process.cwd(), './content/config/extensions.json')\n+}),\n+authLoginPath        = '/auth/login/',\n+authLogoutPath       = '/',\n+authLoggedInHomepage = '/p-admin',\n+merge                = require('utils-merge'),\n+CoreUtilities,\n+CoreController,\n+emailtransport,\n+appSettings,\n+mongoose,\n+User,\n+logger,\n+configError,\n+loginExtSettingsFile,\n+changedemailtemplate,\n+loginExtSettings;\n \n /**\n- * logins a user using passport's local strategy, if a user is passed to this function, then the user will be logged in and req.user will be populated\n- * @param  {object} req\n- * @param  {object} res\n- * @return {object} reponds with an error page or sends user to authenicated in resource\n- */\n+* logins a user using passport's local strategy, if a user is passed to this function, then the user will be logged in and req.user will be populated\n+* @param  {object} req\n+* @param  {object} res\n+* @return {object} reponds with an error page or sends user to authenicated in resource\n+*/\n var login = function (req, res, next) {\n-\tif (configError) {\n-\t\tnext(configError);\n-\t}\n-\telse {\n-\t\tpassport.authenticate('local', function (err, user, info) {\n-\t\t\tlogger.silly('info', info);\n-\t\t\tif (err) {\n-\t\t\t\tlogger.error(err);\n-\t\t\t\treturn next(err);\n-\t\t\t}\n-\t\t\tif (!user) {\n-\t\t\t\treq.flash('error', 'invalid credentials, did you forget your password?');\n-\t\t\t\treturn res.redirect(authLoginPath);\n-\t\t\t}\n-\t\t\treq.logIn(user, function (err) {\n-\t\t\t\tif (err) {\n-\t\t\t\t\tlogger.error(err);\n-\t\t\t\t\treturn next(err);\n-\t\t\t\t}\n-\t\t\t\tif (req.session.return_url) {\n-\t\t\t\t\treturn res.redirect(req.session.return_url);\n-\t\t\t\t}\n-\t\t\t\telse {\n-\t\t\t\t\treturn res.redirect('/');\n-\t\t\t\t}\n-\t\t\t});\n-\t\t})(req, res, next);\n-\t}\n+  if (configError) {\n+    next(configError);\n+  }\n+  else {\n+    passport.authenticate('local', function (err, user, info) {\n+      logger.silly('info', info);\n+      if (err) {\n+        logger.error(err);\n+        return next(err);\n+      }\n+      if (!user) {\n+        req.flash('error', 'invalid credentials, did you forget your password?');\n+        return res.redirect(authLoginPath);\n+      }\n+      req.logIn(user, function (err) {\n+        if (err) {\n+          logger.error(err);\n+          return next(err);\n+        }\n+        if (req.session.return_url) {\n+          return res.redirect(req.session.return_url);\n+        }\n+        else {\n+          return res.redirect('/');\n+        }\n+      });\n+    })(req, res, next);\n+  }\n };\n \n /**\n- * logs user out and destroys user session\n- * @param  {object} req\n- * @param  {object} res\n- * @return {object} sends user to logout resource\n- */\n+* logs user out and destroys user session\n+* @param  {object} req\n+* @param  {object} res\n+* @return {object} sends user to logout resource\n+*/\n var logout = function (req, res) {\n-\treq.logout();\n-\treq.session.destroy(function (err) {\n-\t\tif (err) {\n-\t\t\tlogger.error(err);\n-\t\t}\n-\t\tres.redirect(authLogoutPath);\n-\t});\n+  req.logout();\n+  req.session.destroy(function (err) {\n+    if (err) {\n+      logger.error(err);\n+    }\n+    res.redirect(authLogoutPath);\n+  });\n };\n \n /**\n- * keep a user logged in for 30 days\n- * @param  {object} req\n- * @param  {object} res\n- * @return {Function} next() callback\n- */\n+* keep a user logged in for 30 days\n+* @param  {object} req\n+* @param  {object} res\n+* @return {Function} next() callback\n+*/\n var rememberme = function (req, res, next) {\n-\t// console.log('using remember me');\n-\tif (req.method === 'POST' && req.url === authLoginPath) {\n-\t\tif (req.body.rememberme) {\n-\t\t\treq.session.cookie.maxAge = 2592000000; // 30*24*60*60*1000 Rememeber 'me' for 30 days\n-\t\t}\n-\t\telse {\n-\t\t\treq.session.cookie.expires = false;\n-\t\t}\n-\t}\n-\tnext();\n+  // console.log('using remember me');\n+  if (req.method === 'POST' && req.url === authLoginPath) {\n+    if (req.body.rememberme) {\n+      req.session.cookie.maxAge = 2592000000; // 30*24*60*60*1000 Rememeber 'me' for 30 days\n+    }\n+    else {\n+      req.session.cookie.expires = false;\n+    }\n+  }\n+  next();\n };\n \n+// Utility Functions\n+var waterfall = function(array,cb) {\n+  async.waterfall(array,cb);\n+};\n+var encode = function(data) {\n+  return jwt.sign(data,tokenConfig.secret);\n+};\n+\n+var decode = function(data,cb) {\n+  jwt.verify(data,tokenConfig.secret,{},function(err, decoded_token) {\n+    if (err) {\n+      console.log(\"Error from JWT.verify\", err.name);\n+      console.log(\"Error from JWT.verify\", err.message);\n+    }\n+    cb(decoded_token);\n+  });\n+};\n+\n+var hasExpired = function(created) {\n+  var now = new Date();\n+  var diff = (now.getTime() - created);\n+  return diff > tokenConfig.ttl;\n+};\n+\n+\n+var invalidateUserToken = function(req,res,next,cb) {\n+  var token = req.params.token;\n+  User.findOne({\"attributes.reset_token\": token}, function(err, usr) {\n+    if(err) {\n+      console.log('error finding the user for invalidate token fn');\n+      cb(err,null);\n+    }\n+    usr.attributes.reset_token = \"\";\n+    usr.attributes.reset_token_expires_millis = 0;\n+    cb(false, req,res,next,usr);\n+  });\n+};\n+\n+var resetPassword = function(req,res,next,user,cb) {\n+  var err;\n+  if (req.body.password) {\n+    if (req.body.password !== req.body.passwordconfirm) {\n+      err = new Error('Passwords do not match');\n+      req.flash('error',err);\n+      cb(err,null);\n+    }\n+    else if (req.body.password === undefined || req.body.password.length < 8) {\n+      err = new Error('Password is too short');\n+      req.flash('error',err);\n+      cb(err,null);\n+    }\n+    else {\n+      var salt = bcrypt.genSaltSync(10),\n+      hash = bcrypt.hashSync(req.body.password, salt);\n+      user.password = hash;\n+      cb(null,user);\n+    }\n+  }\n+}\n+\n+function saveUser(user,cb) {\n+  user.markModified('attributes');","path":"controller/auth.js","position":256,"original_position":256,"commit_id":"2ef2dc35f39520f53d182d45be0095e6b14fea0f","original_commit_id":"2ef2dc35f39520f53d182d45be0095e6b14fea0f","user":{"login":"yawetse","id":1192414,"avatar_url":"https://avatars.githubusercontent.com/u/1192414?v=3","gravatar_id":"","url":"https://api.github.com/users/yawetse","html_url":"https://github.com/yawetse","followers_url":"https://api.github.com/users/yawetse/followers","following_url":"https://api.github.com/users/yawetse/following{/other_user}","gists_url":"https://api.github.com/users/yawetse/gists{/gist_id}","starred_url":"https://api.github.com/users/yawetse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yawetse/subscriptions","organizations_url":"https://api.github.com/users/yawetse/orgs","repos_url":"https://api.github.com/users/yawetse/repos","events_url":"https://api.github.com/users/yawetse/events{/privacy}","received_events_url":"https://api.github.com/users/yawetse/received_events","type":"User","site_admin":false},"body":"why don't you add a comment here, just to explain a little","created_at":"2015-01-26T18:54:34Z","updated_at":"2015-01-26T18:54:34Z","html_url":"https://github.com/typesettin/periodicjs.ext.login/pull/7#discussion_r23554298","pull_request_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/comments/23554298"},"html":{"href":"https://github.com/typesettin/periodicjs.ext.login/pull/7#discussion_r23554298"},"pull_request":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7","id":27979974,"html_url":"https://github.com/typesettin/periodicjs.ext.login/pull/7","diff_url":"https://github.com/typesettin/periodicjs.ext.login/pull/7.diff","patch_url":"https://github.com/typesettin/periodicjs.ext.login/pull/7.patch","issue_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/issues/7","number":7,"state":"open","locked":false,"title":"Finish the workflow for create a JWT for users to reset their password","user":{"login":"ecasilla","id":4240936,"avatar_url":"https://avatars.githubusercontent.com/u/4240936?v=3","gravatar_id":"","url":"https://api.github.com/users/ecasilla","html_url":"https://github.com/ecasilla","followers_url":"https://api.github.com/users/ecasilla/followers","following_url":"https://api.github.com/users/ecasilla/following{/other_user}","gists_url":"https://api.github.com/users/ecasilla/gists{/gist_id}","starred_url":"https://api.github.com/users/ecasilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecasilla/subscriptions","organizations_url":"https://api.github.com/users/ecasilla/orgs","repos_url":"https://api.github.com/users/ecasilla/repos","events_url":"https://api.github.com/users/ecasilla/events{/privacy}","received_events_url":"https://api.github.com/users/ecasilla/received_events","type":"User","site_admin":false},"body":"I only need some advice on the email templates and the defualt email right now they all go to my personal email but the workflow is correct","created_at":"2015-01-24T18:20:33Z","updated_at":"2015-01-26T18:54:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88b5e70cdc3472737ada9f81cb4a6cc5f0a009ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7/commits","review_comments_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7/comments","review_comment_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/comments/{number}","comments_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/issues/7/comments","statuses_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/statuses/2ef2dc35f39520f53d182d45be0095e6b14fea0f","head":{"label":"ecasilla:master","ref":"master","sha":"2ef2dc35f39520f53d182d45be0095e6b14fea0f","user":{"login":"ecasilla","id":4240936,"avatar_url":"https://avatars.githubusercontent.com/u/4240936?v=3","gravatar_id":"","url":"https://api.github.com/users/ecasilla","html_url":"https://github.com/ecasilla","followers_url":"https://api.github.com/users/ecasilla/followers","following_url":"https://api.github.com/users/ecasilla/following{/other_user}","gists_url":"https://api.github.com/users/ecasilla/gists{/gist_id}","starred_url":"https://api.github.com/users/ecasilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecasilla/subscriptions","organizations_url":"https://api.github.com/users/ecasilla/orgs","repos_url":"https://api.github.com/users/ecasilla/repos","events_url":"https://api.github.com/users/ecasilla/events{/privacy}","received_events_url":"https://api.github.com/users/ecasilla/received_events","type":"User","site_admin":false},"repo":{"id":27827911,"name":"periodicjs.ext.login","full_name":"ecasilla/periodicjs.ext.login","owner":{"login":"ecasilla","id":4240936,"avatar_url":"https://avatars.githubusercontent.com/u/4240936?v=3","gravatar_id":"","url":"https://api.github.com/users/ecasilla","html_url":"https://github.com/ecasilla","followers_url":"https://api.github.com/users/ecasilla/followers","following_url":"https://api.github.com/users/ecasilla/following{/other_user}","gists_url":"https://api.github.com/users/ecasilla/gists{/gist_id}","starred_url":"https://api.github.com/users/ecasilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecasilla/subscriptions","organizations_url":"https://api.github.com/users/ecasilla/orgs","repos_url":"https://api.github.com/users/ecasilla/repos","events_url":"https://api.github.com/users/ecasilla/events{/privacy}","received_events_url":"https://api.github.com/users/ecasilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ecasilla/periodicjs.ext.login","description":"periodicjs login extension","fork":true,"url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login","forks_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/forks","keys_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/teams","hooks_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/hooks","issue_events_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/issues/events{/number}","events_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/events","assignees_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/assignees{/user}","branches_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/branches{/branch}","tags_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/tags","blobs_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/git/refs{/sha}","trees_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/statuses/{sha}","languages_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/languages","stargazers_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/stargazers","contributors_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/contributors","subscribers_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/subscribers","subscription_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/subscription","commits_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/commits{/sha}","git_commits_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/git/commits{/sha}","comments_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/comments{/number}","issue_comment_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/issues/comments/{number}","contents_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/contents/{+path}","compare_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/merges","archive_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/downloads","issues_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/issues{/number}","pulls_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/pulls{/number}","milestones_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/milestones{/number}","notifications_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/labels{/name}","releases_url":"https://api.github.com/repos/ecasilla/periodicjs.ext.login/releases{/id}","created_at":"2014-12-10T16:13:47Z","updated_at":"2015-01-25T01:50:23Z","pushed_at":"2015-01-25T01:50:23Z","git_url":"git://github.com/ecasilla/periodicjs.ext.login.git","ssh_url":"git@github.com:ecasilla/periodicjs.ext.login.git","clone_url":"https://github.com/ecasilla/periodicjs.ext.login.git","svn_url":"https://github.com/ecasilla/periodicjs.ext.login","homepage":null,"size":331,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"typesettin:master","ref":"master","sha":"8b01f63622385ae57f7d5ecbf1e9c4bd2fc95548","user":{"login":"typesettin","id":7513943,"avatar_url":"https://avatars.githubusercontent.com/u/7513943?v=3","gravatar_id":"","url":"https://api.github.com/users/typesettin","html_url":"https://github.com/typesettin","followers_url":"https://api.github.com/users/typesettin/followers","following_url":"https://api.github.com/users/typesettin/following{/other_user}","gists_url":"https://api.github.com/users/typesettin/gists{/gist_id}","starred_url":"https://api.github.com/users/typesettin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typesettin/subscriptions","organizations_url":"https://api.github.com/users/typesettin/orgs","repos_url":"https://api.github.com/users/typesettin/repos","events_url":"https://api.github.com/users/typesettin/events{/privacy}","received_events_url":"https://api.github.com/users/typesettin/received_events","type":"Organization","site_admin":false},"repo":{"id":20792116,"name":"periodicjs.ext.login","full_name":"typesettin/periodicjs.ext.login","owner":{"login":"typesettin","id":7513943,"avatar_url":"https://avatars.githubusercontent.com/u/7513943?v=3","gravatar_id":"","url":"https://api.github.com/users/typesettin","html_url":"https://github.com/typesettin","followers_url":"https://api.github.com/users/typesettin/followers","following_url":"https://api.github.com/users/typesettin/following{/other_user}","gists_url":"https://api.github.com/users/typesettin/gists{/gist_id}","starred_url":"https://api.github.com/users/typesettin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typesettin/subscriptions","organizations_url":"https://api.github.com/users/typesettin/orgs","repos_url":"https://api.github.com/users/typesettin/repos","events_url":"https://api.github.com/users/typesettin/events{/privacy}","received_events_url":"https://api.github.com/users/typesettin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/typesettin/periodicjs.ext.login","description":"periodicjs login extension","fork":false,"url":"https://api.github.com/repos/typesettin/periodicjs.ext.login","forks_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/forks","keys_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/keys{/key_id}","collaborators_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/teams","hooks_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/hooks","issue_events_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/issues/events{/number}","events_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/events","assignees_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/assignees{/user}","branches_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/branches{/branch}","tags_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/tags","blobs_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/git/refs{/sha}","trees_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/git/trees{/sha}","statuses_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/statuses/{sha}","languages_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/languages","stargazers_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/stargazers","contributors_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/contributors","subscribers_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/subscribers","subscription_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/subscription","commits_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/commits{/sha}","git_commits_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/git/commits{/sha}","comments_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/comments{/number}","issue_comment_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/issues/comments/{number}","contents_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/contents/{+path}","compare_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/compare/{base}...{head}","merges_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/merges","archive_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/downloads","issues_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/issues{/number}","pulls_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls{/number}","milestones_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/milestones{/number}","notifications_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/labels{/name}","releases_url":"https://api.github.com/repos/typesettin/periodicjs.ext.login/releases{/id}","created_at":"2014-06-13T04:30:52Z","updated_at":"2014-12-20T00:37:17Z","pushed_at":"2014-12-20T00:37:17Z","git_url":"git://github.com/typesettin/periodicjs.ext.login.git","ssh_url":"git@github.com:typesettin/periodicjs.ext.login.git","clone_url":"https://github.com/typesettin/periodicjs.ext.login.git","svn_url":"https://github.com/typesettin/periodicjs.ext.login","homepage":null,"size":384,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7"},"html":{"href":"https://github.com/typesettin/periodicjs.ext.login/pull/7"},"issue":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/issues/7"},"comments":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/typesettin/periodicjs.ext.login/statuses/2ef2dc35f39520f53d182d45be0095e6b14fea0f"}}}}