Javascript 隐藏/删除";“创建帐户”;流星注册实用程序链接

Javascript 隐藏/删除";“创建帐户”;流星注册实用程序链接,javascript,meteor,meteor-blaze,meteor-accounts,Javascript,Meteor,Meteor Blaze,Meteor Accounts,如何从Meteor Accounts实用程序中隐藏或永久删除“创建帐户”链接 它的Html代码如下 <div class="dropdown-menu"> <input id="login-username" type="text" placeholder="Username" class="form-control"> <input id="login-password" type="password" placeholder="Password"

如何从Meteor Accounts实用程序中隐藏或永久删除“创建帐户”链接

它的Html代码如下

<div class="dropdown-menu">
    <input id="login-username" type="text" placeholder="Username" class="form-control">
    <input id="login-password" type="password" placeholder="Password" class="form-control">

    <button class="btn btn-primary col-xs-12 col-sm-12" id="login-buttons-password" type="button">
        Sign in
    </button>

    <div id="login-other-options">
    <a id="signup-link" class="pull-right">Create account</a>
    </div>
</div>
下面是图片

要隐藏您可以使用的“创建帐户”按钮(在服务器上):

不过,正如前面所解释的,这将只在客户端禁止它

添加了

另一个选项是使用CSS隐藏它:

#登录其他选项{显示:无!重要;}

不执行
$(“#注册链接”).remove()工作?@charlesreid1:不在Firefox上。错误:Accounts.ui.config:无效密钥:forbidClientAccountCreation@AnkurSoni对不起,修正了我的答案。应该有
AccountsCommon
。我想我没有那个软件包。它说,
uncaughtreferenceerror:AccountsCommon没有定义
@AnkurSoni那么,你应该指定你有什么:)以及“Meteor Accounts utility”在你的问题中的含义。更新了带有包描述的问题。对不起,我错过了。
ian:accounts-ui-bootstrap-3
accounts-password@1.3.6
Accounts.config({forbidClientAccountCreation: true});