Set the created variable in a set_once on the user service. This will make it work for github logins as well.

This commit is contained in:
yackob03 2013-10-10 16:34:59 -04:00
parent 669b3fcde1
commit b9a5060882
2 changed files with 3 additions and 6 deletions

View file

@ -23,6 +23,9 @@ quayApp = angular.module('quay', ['restangular', 'angularMoment', 'angulartics',
'$username': userResponse.username,
'verified': userResponse.verified
});
mixpanel.people.set_once({
'$created': new Date()
})
}
});
};

View file

@ -164,12 +164,6 @@ function LandingCtrl($scope, $timeout, Restangular, UserService, KeyService) {
$scope.registering = false;
mixpanel.alias($scope.newUser.username);
mixpanel.people.set_once({
'$email': $scope.newUser.email,
'$username': $scope.newUser.username,
'$created': new Date(),
'verified': false
});
}, function(result) {
$scope.registering = false;
$scope.registerError = result.data.message;