Skip to content

Commit

Permalink
Support Meteor accounts forbidClientAccountCreation.
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrandin committed May 11, 2014
1 parent 5605381 commit 4b64116
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/views/signIn/signIn.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ AccountsEntry.entrySignInHelpers = {

isUsernameOnly: ->
return AccountsEntry.settings.password#Fields == t9n("username")

showCreateAccountLink: ->
return !Accounts._options.forbidClientAccountCreation
}

AccountsEntry.entrySignInEvents = {
Expand Down
2 changes: 2 additions & 0 deletions client/views/signIn/signIn.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ <h3>{{t9n "signIn"}}</h3>
{{/unless}}
</form>
{{/if}}
{{#if showCreateAccountLink}}
<p class="entry-#-cta">{{t9n "dontHaveAnAccount"}} <a href="/sign-up">{{t9n "#"}}</a></p>
{{/if}}
</div>
</div>
</div>
Expand Down

0 comments on commit 4b64116

Please # to comment.