Hi there,
Is there anyway I can check in my client code if the logged in user has a password set? I want to see if this particular user created an account in contrast to have logged in using google/facebook/twitter integration.
Coffeescript
Server:
Meteor.methods
userHasPassword: ->
return true if Meteor.user().services.password
Client:
Meteor.call 'userHasPassword', (err,result)->
if err then console.log(err)
else if result is true then console.log('user has a password (an account)!')