diff --git a/app/controllers/users/users.authentication.server.controller.js b/app/controllers/users/users.authentication.server.controller.js index e95b3bb4..ce3f8680 100755 --- a/app/controllers/users/users.authentication.server.controller.js +++ b/app/controllers/users/users.authentication.server.controller.js @@ -100,7 +100,6 @@ exports.resendVerificationEmail = function(req, res, next){ */ exports.signup = function(req, res) { // For security measures we remove the roles from the req.body object - if (req.body) { delete req.body.roles; console.log(req.body); @@ -142,9 +141,6 @@ exports.signup = function(req, res) { } } }); - } else { - res.status(500).send('Incomplete Data'); - } }; /** diff --git a/public/modules/forms/directives/analytics-service.client.directive.js b/public/modules/forms/directives/analytics-service.client.directive.js index 228de8cd..1466d69a 100644 --- a/public/modules/forms/directives/analytics-service.client.directive.js +++ b/public/modules/forms/directives/analytics-service.client.directive.js @@ -25,7 +25,7 @@ deviceType: '' }; - $http.get('http://jsonip.com/').success(function(response) { + $http.get('https://jsonip.com/').success(function(response) { visitorData.ipAddr = response['ip']+''; }).error(function(error) { console.error('Could not get users\'s ip');