From eff0770bdad91345611cd4fcb36b9125aff91e9c Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Tue, 4 Apr 2017 13:03:52 -0400 Subject: [PATCH 1/3] Update README to encourage secure configuration MongoDB by default binds to all interfaces, which means that it'll accept connections from anywhere. This is really insecure. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ac01fb29..4b8d618e7 100644 --- a/README.md +++ b/README.md @@ -59,10 +59,11 @@ On the Settings tab, admins can easily control their event application timeline # Setup -Getting a local instance of Quill up and running takes less than 5 minutes! Start by setting up the database: +Getting a local instance of Quill up and running takes less than 5 minutes! Start by setting up the database. Ideally, you should run MongoDB as a daemon with a secure configuration (with most linux distributions, you should be able to install it with your package manager, and it'll be set up as a daemon). Although not recommended for production, when running locally for development, you could do it like this + ``` mkdir db -mongod --dbpath db +mongod --dbpath db --bind_ip 127.0.0.1 --nohttpinterface ``` Install the necessary dependencies: From 304b9db7341fd2ac6fba6dc780098509faace93c Mon Sep 17 00:00:00 2001 From: Anthony Liu Date: Wed, 26 Apr 2017 16:23:00 -0400 Subject: [PATCH 2/3] Change modal logic to refer to confirmation.phoneNumber properly. --- app/client/views/admin/users/adminUsersCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/views/admin/users/adminUsersCtrl.js b/app/client/views/admin/users/adminUsersCtrl.js index 32022dc95..7be1c3de8 100644 --- a/app/client/views/admin/users/adminUsersCtrl.js +++ b/app/client/views/admin/users/adminUsersCtrl.js @@ -208,7 +208,7 @@ angular.module('reg') fields: [ { name: 'Phone Number', - value: user.confirmation.phone + value: user.confirmation.phoneNumber },{ name: 'Dietary Restrictions', value: user.confirmation.dietaryRestrictions.join(', ') From 3dd65a362a889027c208a43b69d093deeecfc3de Mon Sep 17 00:00:00 2001 From: Patrick Insinger Date: Thu, 11 May 2017 19:08:12 -0400 Subject: [PATCH 3/3] Update the team view when a team is joined --- app/client/views/team/teamCtrl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/client/views/team/teamCtrl.js b/app/client/views/team/teamCtrl.js index faf188193..1ba4a9989 100644 --- a/app/client/views/team/teamCtrl.js +++ b/app/client/views/team/teamCtrl.js @@ -16,7 +16,7 @@ angular.module('reg') $scope.TEAM = TEAM; - if ($scope.user.teamCode){ + function _populateTeammates() { UserService .getMyTeammates() .success(function(users){ @@ -25,6 +25,10 @@ angular.module('reg') }); } + if ($scope.user.teamCode){ + _populateTeammates(); + } + $scope.joinTeam = function(){ UserService .joinOrCreateTeam($scope.code)