Send a registration even for github created users. Alias their new username to their old mixpanel ID passed in the OAuth state parameter.

This commit is contained in:
yackob03 2013-10-10 17:32:32 -04:00
parent b9a5060882
commit 32b28df2d2
4 changed files with 40 additions and 3 deletions

View file

@ -141,6 +141,11 @@ function LandingCtrl($scope, $timeout, Restangular, UserService, KeyService) {
$scope.user = currentUser;
}, true);
angulartics.waitForVendorApi(mixpanel, 500, function(loadedMixpanel) {
var mixpanelId = loadedMixpanel.get_distinct_id();
$scope.github_state_clause = '&state=' + mixpanelId;
});
$scope.githubClientId = KeyService.githubClientId;
$scope.awaitingConfirmation = false;