{"action":"closed","number":3767,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii/pulls/3767","id":29808446,"html_url":"https://github.com/yiisoft/yii/pull/3767","diff_url":"https://github.com/yiisoft/yii/pull/3767.diff","patch_url":"https://github.com/yiisoft/yii/pull/3767.patch","issue_url":"https://api.github.com/repos/yiisoft/yii/issues/3767","number":3767,"state":"closed","locked":false,"title":"generateRandomDigits added to CSecurityManager","user":{"login":"fazliddin","id":5574503,"avatar_url":"https://avatars.githubusercontent.com/u/5574503?v=3","gravatar_id":"","url":"https://api.github.com/users/fazliddin","html_url":"https://github.com/fazliddin","followers_url":"https://api.github.com/users/fazliddin/followers","following_url":"https://api.github.com/users/fazliddin/following{/other_user}","gists_url":"https://api.github.com/users/fazliddin/gists{/gist_id}","starred_url":"https://api.github.com/users/fazliddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazliddin/subscriptions","organizations_url":"https://api.github.com/users/fazliddin/orgs","repos_url":"https://api.github.com/users/fazliddin/repos","events_url":"https://api.github.com/users/fazliddin/events{/privacy}","received_events_url":"https://api.github.com/users/fazliddin/received_events","type":"User","site_admin":false},"body":"Sometimes we need random string only consisting from digits. It may be very handy, for example, for generating password recovery token which is sent by SMS.","created_at":"2015-02-23T13:32:07Z","updated_at":"2015-02-23T13:52:46Z","closed_at":"2015-02-23T13:52:46Z","merged_at":null,"merge_commit_sha":"e3d0d36194ce2b1732f7d253a4ddf9e83a96c854","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii/pulls/3767/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii/pulls/3767/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/3767/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii/statuses/c9c54027e95b61d057b2e1ebeaef2aed04a5d3cf","head":{"label":"fazliddin:master","ref":"master","sha":"c9c54027e95b61d057b2e1ebeaef2aed04a5d3cf","user":{"login":"fazliddin","id":5574503,"avatar_url":"https://avatars.githubusercontent.com/u/5574503?v=3","gravatar_id":"","url":"https://api.github.com/users/fazliddin","html_url":"https://github.com/fazliddin","followers_url":"https://api.github.com/users/fazliddin/followers","following_url":"https://api.github.com/users/fazliddin/following{/other_user}","gists_url":"https://api.github.com/users/fazliddin/gists{/gist_id}","starred_url":"https://api.github.com/users/fazliddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazliddin/subscriptions","organizations_url":"https://api.github.com/users/fazliddin/orgs","repos_url":"https://api.github.com/users/fazliddin/repos","events_url":"https://api.github.com/users/fazliddin/events{/privacy}","received_events_url":"https://api.github.com/users/fazliddin/received_events","type":"User","site_admin":false},"repo":{"id":31208394,"name":"yii","full_name":"fazliddin/yii","owner":{"login":"fazliddin","id":5574503,"avatar_url":"https://avatars.githubusercontent.com/u/5574503?v=3","gravatar_id":"","url":"https://api.github.com/users/fazliddin","html_url":"https://github.com/fazliddin","followers_url":"https://api.github.com/users/fazliddin/followers","following_url":"https://api.github.com/users/fazliddin/following{/other_user}","gists_url":"https://api.github.com/users/fazliddin/gists{/gist_id}","starred_url":"https://api.github.com/users/fazliddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazliddin/subscriptions","organizations_url":"https://api.github.com/users/fazliddin/orgs","repos_url":"https://api.github.com/users/fazliddin/repos","events_url":"https://api.github.com/users/fazliddin/events{/privacy}","received_events_url":"https://api.github.com/users/fazliddin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fazliddin/yii","description":"Yii PHP Framework","fork":true,"url":"https://api.github.com/repos/fazliddin/yii","forks_url":"https://api.github.com/repos/fazliddin/yii/forks","keys_url":"https://api.github.com/repos/fazliddin/yii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fazliddin/yii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fazliddin/yii/teams","hooks_url":"https://api.github.com/repos/fazliddin/yii/hooks","issue_events_url":"https://api.github.com/repos/fazliddin/yii/issues/events{/number}","events_url":"https://api.github.com/repos/fazliddin/yii/events","assignees_url":"https://api.github.com/repos/fazliddin/yii/assignees{/user}","branches_url":"https://api.github.com/repos/fazliddin/yii/branches{/branch}","tags_url":"https://api.github.com/repos/fazliddin/yii/tags","blobs_url":"https://api.github.com/repos/fazliddin/yii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fazliddin/yii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fazliddin/yii/git/refs{/sha}","trees_url":"https://api.github.com/repos/fazliddin/yii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fazliddin/yii/statuses/{sha}","languages_url":"https://api.github.com/repos/fazliddin/yii/languages","stargazers_url":"https://api.github.com/repos/fazliddin/yii/stargazers","contributors_url":"https://api.github.com/repos/fazliddin/yii/contributors","subscribers_url":"https://api.github.com/repos/fazliddin/yii/subscribers","subscription_url":"https://api.github.com/repos/fazliddin/yii/subscription","commits_url":"https://api.github.com/repos/fazliddin/yii/commits{/sha}","git_commits_url":"https://api.github.com/repos/fazliddin/yii/git/commits{/sha}","comments_url":"https://api.github.com/repos/fazliddin/yii/comments{/number}","issue_comment_url":"https://api.github.com/repos/fazliddin/yii/issues/comments{/number}","contents_url":"https://api.github.com/repos/fazliddin/yii/contents/{+path}","compare_url":"https://api.github.com/repos/fazliddin/yii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fazliddin/yii/merges","archive_url":"https://api.github.com/repos/fazliddin/yii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fazliddin/yii/downloads","issues_url":"https://api.github.com/repos/fazliddin/yii/issues{/number}","pulls_url":"https://api.github.com/repos/fazliddin/yii/pulls{/number}","milestones_url":"https://api.github.com/repos/fazliddin/yii/milestones{/number}","notifications_url":"https://api.github.com/repos/fazliddin/yii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fazliddin/yii/labels{/name}","releases_url":"https://api.github.com/repos/fazliddin/yii/releases{/id}","created_at":"2015-02-23T13:07:23Z","updated_at":"2015-02-23T13:29:22Z","pushed_at":"2015-02-23T13:29:22Z","git_url":"git://github.com/fazliddin/yii.git","ssh_url":"git@github.com:fazliddin/yii.git","clone_url":"https://github.com/fazliddin/yii.git","svn_url":"https://github.com/fazliddin/yii","homepage":"http://www.yiiframework.com","size":51178,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"yiisoft:master","ref":"master","sha":"ee39b8511c6c821f2e8863655d92151cc4931448","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3451238,"name":"yii","full_name":"yiisoft/yii","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii","description":"Yii PHP Framework","fork":false,"url":"https://api.github.com/repos/yiisoft/yii","forks_url":"https://api.github.com/repos/yiisoft/yii/forks","keys_url":"https://api.github.com/repos/yiisoft/yii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii/events","assignees_url":"https://api.github.com/repos/yiisoft/yii/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii/merges","archive_url":"https://api.github.com/repos/yiisoft/yii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii/releases{/id}","created_at":"2012-02-15T16:26:22Z","updated_at":"2015-02-23T00:09:39Z","pushed_at":"2015-02-14T02:19:42Z","git_url":"git://github.com/yiisoft/yii.git","ssh_url":"git@github.com:yiisoft/yii.git","clone_url":"https://github.com/yiisoft/yii.git","svn_url":"https://github.com/yiisoft/yii","homepage":"http://www.yiiframework.com","size":51178,"stargazers_count":4299,"watchers_count":4299,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1825,"mirror_url":null,"open_issues_count":640,"forks":1825,"open_issues":640,"watchers":4299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii/pulls/3767"},"html":{"href":"https://github.com/yiisoft/yii/pull/3767"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii/issues/3767"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii/issues/3767/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii/pulls/3767/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii/pulls/3767/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii/statuses/c9c54027e95b61d057b2e1ebeaef2aed04a5d3cf"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":22,"deletions":0,"changed_files":1}}