2014-11-01 28 views

回答

1

試試這個。

Meteor.startup(function() { 
    if (Meteor.users.find().count() === 0) { 
    Accounts.createUser({ 
     username: 'admin', 
     email: '[email protected]', 
     password: 'password' 
    }); 
    console.log('created user'); 
    } 
}); 
相關問題