1

ユーザー登録を作成しようとしています。インストールしました

accounts-base                              1.2.2* A user account system
accounts-password                          1.1.4* Password support for accounts

クライアント側:

var userNew = {
    password: textPassword,
    username: textUserName,
    profile: {
        address: textAddress
    }
};

Accounts.createUser(userNew, function (err) {
    if (err) {
        alert(err.message);
    } else {
        Router.go('/');
    }
});

しかし、エラーを表示します:

I20160423-17:47:07.299(7)? Exception while invoking method 'createUser' TypeError: Cannot read property 'accessToken' of undefined

また、サーバー側で設定しました:

Accounts.config({
    forbidClientAccountCreation : false
});
4

1 に答える 1