summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/users.js b/models/users.js
index ee53c7ab..9147322c 100644
--- a/models/users.js
+++ b/models/users.js
@@ -541,6 +541,7 @@ Users.mutations({
Meteor.methods({
setUsername(username, userId) {
check(username, String);
+ check(userId, String);
const nUsersWithUsername = Users.find({ username }).count();
if (nUsersWithUsername > 0) {
throw new Meteor.Error('username-already-taken');