Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / server / web / track-signup-or-login.js
blob1d74682ff2ab59db3e9ceb29c9046d809949896e
1 'use strict';
3 var trackNewUser = require('./track-new-user');
4 var trackUserLogin = require('./track-user-login');
6 module.exports = function trackSignupOrLogin(req, user, isNewUser, provider) {
7 if (isNewUser) {
8 trackNewUser(req, user, provider);
9 } else {
10 trackUserLogin(req, user, provider);