{"action":"created","comment":{"url":"https://api.github.com/repos/claydotio/clay-mobile/pulls/comments/25465238","id":25465238,"diff_hunk":"@@ -0,0 +1,101 @@\n+z = require 'zorium'\n+log = require 'clay-loglevel'\n+Input = require 'zorium-paper/input'\n+Button = require 'zorium-paper/button'\n+Card = require 'zorium-paper/card'\n+\n+User = require '../../models/user'\n+PhoneService = require '../../services/phone'\n+styleConfig = require '../../stylus/vars.json'\n+\n+styles = require './index.styl'\n+\n+module.exports = class ResetPassword\n+  constructor: ->\n+    styles.use()\n+\n+    o_recoveryToken = z.observe ''\n+    o_recoveryTokenError = z.observe null\n+    o_newPassword = z.observe ''\n+    o_newPasswordError = z.observe null\n+\n+    @state = z.state\n+      $formCard: new Card()\n+      $recoveryTokenInput: new Input {\n+        o_value: o_recoveryToken\n+        o_error: o_recoveryTokenError\n+      }\n+      $newPasswordInput: new Input {\n+        o_value: o_newPassword\n+        o_error: o_newPasswordError\n+      }\n+      $changePasswordButton: new Button()\n+      $resendButton: new Button()\n+      o_recoveryToken: o_recoveryToken\n+      o_recoveryTokenError: o_recoveryTokenError\n+      o_newPassword: o_newPassword\n+      o_newPasswordError: o_newPasswordError\n+\n+  resend: (phone) =>\n+    ga? 'send', 'event', 'reset_password', 'resend'\n+    PhoneService.sanitizePhoneNumber phone\n+    .then (phone) ->\n+      User.loginRecovery {phone}\n+    .catch (err) =>\n+      error = JSON.parse err._body\n+      @state.o_newPasswordError.set error.detail\n+      throw err\n+    .then =>\n+      @state.set $resendButton: null","path":"src/components/reset_password/index.coffee","position":49,"original_position":49,"commit_id":"376e76022007f72c359598c0ca556eb4413cac3b","original_commit_id":"376e76022007f72c359598c0ca556eb4413cac3b","user":{"login":"Zolmeister","id":700546,"avatar_url":"https://avatars.githubusercontent.com/u/700546?v=3","gravatar_id":"","url":"https://api.github.com/users/Zolmeister","html_url":"https://github.com/Zolmeister","followers_url":"https://api.github.com/users/Zolmeister/followers","following_url":"https://api.github.com/users/Zolmeister/following{/other_user}","gists_url":"https://api.github.com/users/Zolmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/Zolmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zolmeister/subscriptions","organizations_url":"https://api.github.com/users/Zolmeister/orgs","repos_url":"https://api.github.com/users/Zolmeister/repos","events_url":"https://api.github.com/users/Zolmeister/events{/privacy}","received_events_url":"https://api.github.com/users/Zolmeister/received_events","type":"User","site_admin":false},"body":"I'm against this, but it's not horrible.\r\nPut a comment here at least explaining.","created_at":"2015-02-26T21:18:07Z","updated_at":"2015-02-26T21:18:07Z","html_url":"https://github.com/claydotio/clay-mobile/pull/243#discussion_r25465238","pull_request_url":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243","_links":{"self":{"href":"https://api.github.com/repos/claydotio/clay-mobile/pulls/comments/25465238"},"html":{"href":"https://github.com/claydotio/clay-mobile/pull/243#discussion_r25465238"},"pull_request":{"href":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243"}}},"pull_request":{"url":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243","id":30040961,"html_url":"https://github.com/claydotio/clay-mobile/pull/243","diff_url":"https://github.com/claydotio/clay-mobile/pull/243.diff","patch_url":"https://github.com/claydotio/clay-mobile/pull/243.patch","issue_url":"https://api.github.com/repos/claydotio/clay-mobile/issues/243","number":243,"state":"open","locked":false,"title":"Friends","user":{"login":"austinhallock","id":1271767,"avatar_url":"https://avatars.githubusercontent.com/u/1271767?v=3","gravatar_id":"","url":"https://api.github.com/users/austinhallock","html_url":"https://github.com/austinhallock","followers_url":"https://api.github.com/users/austinhallock/followers","following_url":"https://api.github.com/users/austinhallock/following{/other_user}","gists_url":"https://api.github.com/users/austinhallock/gists{/gist_id}","starred_url":"https://api.github.com/users/austinhallock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinhallock/subscriptions","organizations_url":"https://api.github.com/users/austinhallock/orgs","repos_url":"https://api.github.com/users/austinhallock/repos","events_url":"https://api.github.com/users/austinhallock/events{/privacy}","received_events_url":"https://api.github.com/users/austinhallock/received_events","type":"User","site_admin":false},"body":"will merge master once done with pr fixes...","created_at":"2015-02-26T00:46:01Z","updated_at":"2015-02-26T21:18:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243/commits","review_comments_url":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243/comments","review_comment_url":"https://api.github.com/repos/claydotio/clay-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/claydotio/clay-mobile/issues/243/comments","statuses_url":"https://api.github.com/repos/claydotio/clay-mobile/statuses/376e76022007f72c359598c0ca556eb4413cac3b","head":{"label":"claydotio:friends","ref":"friends","sha":"376e76022007f72c359598c0ca556eb4413cac3b","user":{"login":"claydotio","id":1550216,"avatar_url":"https://avatars.githubusercontent.com/u/1550216?v=3","gravatar_id":"","url":"https://api.github.com/users/claydotio","html_url":"https://github.com/claydotio","followers_url":"https://api.github.com/users/claydotio/followers","following_url":"https://api.github.com/users/claydotio/following{/other_user}","gists_url":"https://api.github.com/users/claydotio/gists{/gist_id}","starred_url":"https://api.github.com/users/claydotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claydotio/subscriptions","organizations_url":"https://api.github.com/users/claydotio/orgs","repos_url":"https://api.github.com/users/claydotio/repos","events_url":"https://api.github.com/users/claydotio/events{/privacy}","received_events_url":"https://api.github.com/users/claydotio/received_events","type":"Organization","site_admin":false},"repo":{"id":22356968,"name":"clay-mobile","full_name":"claydotio/clay-mobile","owner":{"login":"claydotio","id":1550216,"avatar_url":"https://avatars.githubusercontent.com/u/1550216?v=3","gravatar_id":"","url":"https://api.github.com/users/claydotio","html_url":"https://github.com/claydotio","followers_url":"https://api.github.com/users/claydotio/followers","following_url":"https://api.github.com/users/claydotio/following{/other_user}","gists_url":"https://api.github.com/users/claydotio/gists{/gist_id}","starred_url":"https://api.github.com/users/claydotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claydotio/subscriptions","organizations_url":"https://api.github.com/users/claydotio/orgs","repos_url":"https://api.github.com/users/claydotio/repos","events_url":"https://api.github.com/users/claydotio/events{/privacy}","received_events_url":"https://api.github.com/users/claydotio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claydotio/clay-mobile","description":"","fork":false,"url":"https://api.github.com/repos/claydotio/clay-mobile","forks_url":"https://api.github.com/repos/claydotio/clay-mobile/forks","keys_url":"https://api.github.com/repos/claydotio/clay-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claydotio/clay-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claydotio/clay-mobile/teams","hooks_url":"https://api.github.com/repos/claydotio/clay-mobile/hooks","issue_events_url":"https://api.github.com/repos/claydotio/clay-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/claydotio/clay-mobile/events","assignees_url":"https://api.github.com/repos/claydotio/clay-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/claydotio/clay-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/claydotio/clay-mobile/tags","blobs_url":"https://api.github.com/repos/claydotio/clay-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claydotio/clay-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claydotio/clay-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/claydotio/clay-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claydotio/clay-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/claydotio/clay-mobile/languages","stargazers_url":"https://api.github.com/repos/claydotio/clay-mobile/stargazers","contributors_url":"https://api.github.com/repos/claydotio/clay-mobile/contributors","subscribers_url":"https://api.github.com/repos/claydotio/clay-mobile/subscribers","subscription_url":"https://api.github.com/repos/claydotio/clay-mobile/subscription","commits_url":"https://api.github.com/repos/claydotio/clay-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/claydotio/clay-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/claydotio/clay-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/claydotio/clay-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/claydotio/clay-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/claydotio/clay-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claydotio/clay-mobile/merges","archive_url":"https://api.github.com/repos/claydotio/clay-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claydotio/clay-mobile/downloads","issues_url":"https://api.github.com/repos/claydotio/clay-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/claydotio/clay-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/claydotio/clay-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/claydotio/clay-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claydotio/clay-mobile/labels{/name}","releases_url":"https://api.github.com/repos/claydotio/clay-mobile/releases{/id}","created_at":"2014-07-28T20:34:03Z","updated_at":"2015-02-25T01:06:35Z","pushed_at":"2015-02-26T21:01:24Z","git_url":"git://github.com/claydotio/clay-mobile.git","ssh_url":"git@github.com:claydotio/clay-mobile.git","clone_url":"https://github.com/claydotio/clay-mobile.git","svn_url":"https://github.com/claydotio/clay-mobile","homepage":null,"size":8352,"stargazers_count":7,"watchers_count":7,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":7,"default_branch":"master"}},"base":{"label":"claydotio:master","ref":"master","sha":"cedb64acc0b16059d47c679838de5a20d305e25b","user":{"login":"claydotio","id":1550216,"avatar_url":"https://avatars.githubusercontent.com/u/1550216?v=3","gravatar_id":"","url":"https://api.github.com/users/claydotio","html_url":"https://github.com/claydotio","followers_url":"https://api.github.com/users/claydotio/followers","following_url":"https://api.github.com/users/claydotio/following{/other_user}","gists_url":"https://api.github.com/users/claydotio/gists{/gist_id}","starred_url":"https://api.github.com/users/claydotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claydotio/subscriptions","organizations_url":"https://api.github.com/users/claydotio/orgs","repos_url":"https://api.github.com/users/claydotio/repos","events_url":"https://api.github.com/users/claydotio/events{/privacy}","received_events_url":"https://api.github.com/users/claydotio/received_events","type":"Organization","site_admin":false},"repo":{"id":22356968,"name":"clay-mobile","full_name":"claydotio/clay-mobile","owner":{"login":"claydotio","id":1550216,"avatar_url":"https://avatars.githubusercontent.com/u/1550216?v=3","gravatar_id":"","url":"https://api.github.com/users/claydotio","html_url":"https://github.com/claydotio","followers_url":"https://api.github.com/users/claydotio/followers","following_url":"https://api.github.com/users/claydotio/following{/other_user}","gists_url":"https://api.github.com/users/claydotio/gists{/gist_id}","starred_url":"https://api.github.com/users/claydotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claydotio/subscriptions","organizations_url":"https://api.github.com/users/claydotio/orgs","repos_url":"https://api.github.com/users/claydotio/repos","events_url":"https://api.github.com/users/claydotio/events{/privacy}","received_events_url":"https://api.github.com/users/claydotio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claydotio/clay-mobile","description":"","fork":false,"url":"https://api.github.com/repos/claydotio/clay-mobile","forks_url":"https://api.github.com/repos/claydotio/clay-mobile/forks","keys_url":"https://api.github.com/repos/claydotio/clay-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claydotio/clay-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claydotio/clay-mobile/teams","hooks_url":"https://api.github.com/repos/claydotio/clay-mobile/hooks","issue_events_url":"https://api.github.com/repos/claydotio/clay-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/claydotio/clay-mobile/events","assignees_url":"https://api.github.com/repos/claydotio/clay-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/claydotio/clay-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/claydotio/clay-mobile/tags","blobs_url":"https://api.github.com/repos/claydotio/clay-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claydotio/clay-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claydotio/clay-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/claydotio/clay-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claydotio/clay-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/claydotio/clay-mobile/languages","stargazers_url":"https://api.github.com/repos/claydotio/clay-mobile/stargazers","contributors_url":"https://api.github.com/repos/claydotio/clay-mobile/contributors","subscribers_url":"https://api.github.com/repos/claydotio/clay-mobile/subscribers","subscription_url":"https://api.github.com/repos/claydotio/clay-mobile/subscription","commits_url":"https://api.github.com/repos/claydotio/clay-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/claydotio/clay-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/claydotio/clay-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/claydotio/clay-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/claydotio/clay-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/claydotio/clay-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claydotio/clay-mobile/merges","archive_url":"https://api.github.com/repos/claydotio/clay-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claydotio/clay-mobile/downloads","issues_url":"https://api.github.com/repos/claydotio/clay-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/claydotio/clay-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/claydotio/clay-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/claydotio/clay-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claydotio/clay-mobile/labels{/name}","releases_url":"https://api.github.com/repos/claydotio/clay-mobile/releases{/id}","created_at":"2014-07-28T20:34:03Z","updated_at":"2015-02-25T01:06:35Z","pushed_at":"2015-02-26T21:01:24Z","git_url":"git://github.com/claydotio/clay-mobile.git","ssh_url":"git@github.com:claydotio/clay-mobile.git","clone_url":"https://github.com/claydotio/clay-mobile.git","svn_url":"https://github.com/claydotio/clay-mobile","homepage":null,"size":8352,"stargazers_count":7,"watchers_count":7,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243"},"html":{"href":"https://github.com/claydotio/clay-mobile/pull/243"},"issue":{"href":"https://api.github.com/repos/claydotio/clay-mobile/issues/243"},"comments":{"href":"https://api.github.com/repos/claydotio/clay-mobile/issues/243/comments"},"review_comments":{"href":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243/comments"},"review_comment":{"href":"https://api.github.com/repos/claydotio/clay-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/claydotio/clay-mobile/pulls/243/commits"},"statuses":{"href":"https://api.github.com/repos/claydotio/clay-mobile/statuses/376e76022007f72c359598c0ca556eb4413cac3b"}}}}