Browse Source

Fix password not saved

soohwa 7 years ago
parent
commit
42ca385a36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/users.js

+ 1 - 1
models/users.js

@@ -594,7 +594,7 @@ if (Meteor.isServer) {
     const id = Accounts.createUser({
     const id = Accounts.createUser({
       username: req.body.username,
       username: req.body.username,
       email: req.body.email,
       email: req.body.email,
-      password: 'default',
+      password: req.body.password,
       from: 'admin',
       from: 'admin',
     });
     });