0
所以我創建一個新用戶,因爲我的模板被創建。用戶正在成功創建,並自動登錄,但是如果我退出然後嘗試登錄,則會收到'未找到用戶'。這裏是我的代碼用戶被創建但註銷後無法登錄MeteorJS
Template.hello.onCreated(function helloOnCreated() {
// counter starts at 0
this.counter = new ReactiveVar(0);
var userObject = {
username: "anotherTest",
mail: "[email protected]",
password: "testingME"
};
Accounts.createUser(userObject, function(error){
console.log('User created');
console.log(error);
});
});
這裏是完整的項目,以防萬一需要。 https://github.com/hayk94/UbMvp/tree/accountsTEST
你知道這是什麼問題嗎?