{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/angularfire/issues/731","repository_url":"https://api.github.com/repos/firebase/angularfire","labels_url":"https://api.github.com/repos/firebase/angularfire/issues/731/labels{/name}","comments_url":"https://api.github.com/repos/firebase/angularfire/issues/731/comments","events_url":"https://api.github.com/repos/firebase/angularfire/issues/731/events","html_url":"https://github.com/firebase/angularfire/issues/731","id":157654307,"number":731,"title":"Reset Password? Email Confirmation? = Problems?","user":{"login":"amanuel2","id":16020076,"avatar_url":"https://avatars.githubusercontent.com/u/16020076?v=3","gravatar_id":"","url":"https://api.github.com/users/amanuel2","html_url":"https://github.com/amanuel2","followers_url":"https://api.github.com/users/amanuel2/followers","following_url":"https://api.github.com/users/amanuel2/following{/other_user}","gists_url":"https://api.github.com/users/amanuel2/gists{/gist_id}","starred_url":"https://api.github.com/users/amanuel2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amanuel2/subscriptions","organizations_url":"https://api.github.com/users/amanuel2/orgs","repos_url":"https://api.github.com/users/amanuel2/repos","events_url":"https://api.github.com/users/amanuel2/events{/privacy}","received_events_url":"https://api.github.com/users/amanuel2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/firebase/angularfire/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-31T11:59:04Z","updated_at":"2016-05-31T18:55:45Z","closed_at":null,"body":"Hey guys, i currently have this issue where it confirms the email random amount of times... and all the time when you register sucessfully, it first alerts me saying Username is Dupe(Which its not), and then confirms email...???\r\n\r\nHere is Github Repo JS : https://github.com/amanuel2/ng-forum/blob/master/controllers/authCtrl.js\r\n\r\nSection Code Registering! : \r\n```\r\n $scope.regissterForm = function() {\r\n\r\n            $scope.isUsernameDupe = false;\r\n            refService.ref().child(\"UserAuthInfo\").on(\"value\", function(snapshot) {\r\n                snapshot.forEach(function(childSNap) {\r\n\r\n                    var key = childSNap.key();\r\n                    var childData = childSNap.val();\r\n\r\n                    if (childData.Username == $scope.register.username) {\r\n                        $scope.isUsernameDupe = true;\r\n                        return;\r\n                    }\r\n\r\n                })\r\n\r\n                if ($scope.register.terms && $scope.isUsernameDupe != true) {\r\n                    refService.ref().createUser({\r\n                        email: $scope.register.email,\r\n                        password: PASSWORDRESET(16)\r\n                    }, function(error, userData) {\r\n                        if (error) {\r\n                            switch (error.code) {\r\n                                case \"EMAIL_TAKEN\":\r\n                                    alertify.error(\"The new user account cannot be created because the email is already in use.\");\r\n                                    break;\r\n                                case \"INVALID_EMAIL\":\r\n                                    alertify.error(\"The specified email is not a valid email.\");\r\n                                    break;\r\n                                default:\r\n                                    alertify.error(\"Error creating user:\", error);\r\n                            }\r\n                        } else {\r\n                            refService.ref().child(\"UserAuthInfo\").on(\"value\", function(snapshot) {\r\n                                refService.ref().resetPassword({\r\n                                  email: $scope.register.email\r\n                                }, function(error) {\r\n                                  if (error) {\r\n                                    switch (error.code) {\r\n                                      case \"INVALID_USER\":\r\n                                        console.log(\"The specified user account does not exist.\");\r\n                                        break;\r\n                                      default:\r\n                                        console.log(\"Error resetting password:\", error);\r\n                                    }\r\n                                  } else {\r\n                                    alertify.success(\"Confirmaton Sent to \" + $scope.register.email);\r\n                                  }\r\n                                });   \r\n                                refService.ref().child(\"UserAuthInfo\").child(userData.uid).set({\r\n                                    Username: $scope.register.username,\r\n                                    Email: $scope.register.email,\r\n                                    UID: userData.uid,\r\n                                    Image: 'http://cs624223.vk.me/v624223037/2b1bb/GRTKddkmXiw.jpg',\r\n                                    Moderator: false,\r\n                                    BronzeBadge: 0,\r\n                                    SilverBadge: 0,\r\n                                    GoldBadge: 0,\r\n                                    PlatinumBadge: 0\r\n                                });\r\n\r\n                            })\r\n\r\n\r\n                        }\r\n                    });\r\n                } else if ($scope.isUsernameDupe == true) {\r\n                    alertify.error(\"Username already in use\");\r\n                } else {\r\n                    alertify.warning(\"You Must Accept Terms and Services Before Procceding!\")\r\n                }\r\n            })\r\n        }\r\n```\r\n\r\nHTML For Register Github : https://github.com/amanuel2/ng-forum/blob/master/views/auth.html\r\n\r\nI also posted the same issue here.. https://github.com/amanuel2/ng-forum/issues/28"},"comment":{"url":"https://api.github.com/repos/firebase/angularfire/issues/comments/222785561","html_url":"https://github.com/firebase/angularfire/issues/731#issuecomment-222785561","issue_url":"https://api.github.com/repos/firebase/angularfire/issues/731","id":222785561,"user":{"login":"katowulf","id":959972,"avatar_url":"https://avatars.githubusercontent.com/u/959972?v=3","gravatar_id":"","url":"https://api.github.com/users/katowulf","html_url":"https://github.com/katowulf","followers_url":"https://api.github.com/users/katowulf/followers","following_url":"https://api.github.com/users/katowulf/following{/other_user}","gists_url":"https://api.github.com/users/katowulf/gists{/gist_id}","starred_url":"https://api.github.com/users/katowulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katowulf/subscriptions","organizations_url":"https://api.github.com/users/katowulf/orgs","repos_url":"https://api.github.com/users/katowulf/repos","events_url":"https://api.github.com/users/katowulf/events{/privacy}","received_events_url":"https://api.github.com/users/katowulf/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T18:55:45Z","updated_at":"2016-05-31T18:55:45Z","body":"Please reduce this code to a simple repro (we can't debug your app, sorry, we need the minimal code in a runnable state), include version info, and steps to reproduce. See [creating an mcve](http://stackoverflow.com/help/mcve)."}}
{"actor":{"display_login":"katowulf"}}