Skip to content

Commit

Permalink
Add showOtherLoginServices option
Browse files Browse the repository at this point in the history
  • Loading branch information
ryw committed Jun 12, 2014
1 parent 9ba469e commit a3b61e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/entry.coffee
Expand Up @@ -8,6 +8,7 @@ AccountsEntry =
usernameToLower: false
entrySignUp: '/sign-up'
extraSignUpFields: []
showOtherLoginServices: true

isStringEmail: (email) ->
emailPattern = /^([\w.-]+)@([\w.-]+)\.([a-zA-Z.]{2,6})$/i
Expand Down
3 changes: 2 additions & 1 deletion client/helpers.coffee
Expand Up @@ -16,13 +16,14 @@ Handlebars.registerHelper 'capitalize', (str) ->
str.charAt(0).toUpperCase() + str.slice(1)

Handlebars.registerHelper 'signupClass', ->
if Accounts.oauth && Accounts.oauth.serviceNames().length > 0
if AccountsEntry.settings.showOtherLoginServices && Accounts.oauth && Accounts.oauth.serviceNames().length > 0
"collapse"

Handlebars.registerHelper 'signedIn', ->
return true if Meteor.user()

Handlebars.registerHelper 'otherLoginServices', ->
AccountsEntry.settings.showOtherLoginServices &&
Accounts.oauth &&
Accounts.oauth.serviceNames().length > 0

Expand Down

0 comments on commit a3b61e7

Please sign in to comment.