diff --git a/client/views/users/user_signup.js b/client/views/users/user_signup.js index b47441d5a..ddebcea8c 100644 --- a/client/views/users/user_signup.js +++ b/client/views/users/user_signup.js @@ -4,6 +4,10 @@ Template.user_signup.events = { var username = $('#username').val(); var email = $('#email').val(); var password = $('#password').val(); + if(!username || !email || !password){ + throwError('Please fill in all fields'); + return false; + } Accounts.createUser({ username: username , email: email diff --git a/server/scoring.js b/server/scoring.js index 7df9856cc..303234b92 100644 --- a/server/scoring.js +++ b/server/scoring.js @@ -17,6 +17,8 @@ var updateScore = function (collection, id) { if(object.sticky) newScore=999; collection.update(id, {$set: {score: newScore}}); + + // console.log('old score: '+object.baseScore+' | new score: '+newScore+' | score diff: '+Math.abs(newScore-object.baseScore)); }; Meteor.startup(function () {