From b9a5060882ed6510bcbfaafadaccb4bad226cde9 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Thu, 10 Oct 2013 16:34:59 -0400 Subject: [PATCH] Set the created variable in a set_once on the user service. This will make it work for github logins as well. --- static/js/app.js | 3 +++ static/js/controllers.js | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index e9cca9b46..0fe4decd1 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -23,6 +23,9 @@ quayApp = angular.module('quay', ['restangular', 'angularMoment', 'angulartics', '$username': userResponse.username, 'verified': userResponse.verified }); + mixpanel.people.set_once({ + '$created': new Date() + }) } }); }; diff --git a/static/js/controllers.js b/static/js/controllers.js index eab1d4530..0fbe4c911 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -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;