From c6344c00f095bb33a3a00a0bb83cb84c3c4d6318 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sun, 12 Mar 2017 18:31:56 -0400 Subject: [PATCH] Update user.dart --- lib/src/services/user.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/src/services/user.dart b/lib/src/services/user.dart index a6fec0d..06bb728 100644 --- a/lib/src/services/user.dart +++ b/lib/src/services/user.dart @@ -26,9 +26,7 @@ configureServer(Db db) { // Don't broadcast user events over WebSockets - they're sensitive data! service.beforeAll((e) { - if (e.params == null) - e.params = {'broadcast': false}; - else e.params['broadcast'] = false; + e.params['broadcast'] = false; }); // Validate new users, and also hash their passwords.