我下载了一个名为MeteorAdmin的Meteor Starter项目。本项目使用meteor-useraccounts包
我希望阻止"Don't have an account? Register"语句出现在默认的SignIn视图中。
因此,在accounts.coffee中,我更改了以下内容:
AccountsTemplates.configureRoute 'signIn'
AccountsTemplates.configureRoute 'signUp'至:
AccountsTemplates.configureRoute 'signIn' ,
hideSignUpLink: true
AccountsTemplates.configureRoute 'signUp'这不管用!尽管meteor-useraccounts documentation说它应该可以工作,因此出现了这个问题
发布于 2015-09-02 14:45:04
我猜你必须把它放在主配置中,如下所示:
AccountsTemplates.configure({
hideSignUpLink: true
});https://stackoverflow.com/questions/32342562
复制相似问题