Update user.dart

This commit is contained in:
Tobe O 2017-03-12 18:31:56 -04:00 committed by GitHub
parent 44398a3ef3
commit c6344c00f0

View file

@ -26,9 +26,7 @@ configureServer(Db db) {
// Don't broadcast user events over WebSockets - they're sensitive data! // Don't broadcast user events over WebSockets - they're sensitive data!
service.beforeAll((e) { service.beforeAll((e) {
if (e.params == null) e.params['broadcast'] = false;
e.params = {'broadcast': false};
else e.params['broadcast'] = false;
}); });
// Validate new users, and also hash their passwords. // Validate new users, and also hash their passwords.