How to hide or permanently remove "Create Account" link from Meteor Accounts utility?
Html code for it is as below;
<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>
I used code $("#login-other-options").remove();
it works on Chrome but not on Firefox. So any universal technique?
I have below package installed.
ian:accounts-ui-bootstrap-3
[email protected]
below is the image.
To hide "Create Account" button you can use (on server):
Accounts.config({forbidClientAccountCreation: true});
Though, this will forbid it only on client side, as explained here.
Documentation on AccountsCommon.config
.
Added:
Another option will be just hide it using CSS:
#login-other-options { display: none !important; }