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:
parent
669b3fcde1
commit
b9a5060882
2 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue