Skip to content

Instantly share code, notes, and snippets.

@ramsaylanier
Last active August 29, 2015 14:22
Show Gist options
  • Save ramsaylanier/69e5788dbc89269bf4cc to your computer and use it in GitHub Desktop.
Save ramsaylanier/69e5788dbc89269bf4cc to your computer and use it in GitHub Desktop.
loginFromExtension for PushQuotes
//loctaed in 'server' folder.
Meteor.methods({
loginFromExtension: function(username, password){
try {
if (ApiPassword.isPasswordValid(username, password)) {
console.log('password is valid for this user');
return true;
} else {
return 'Password is not valid.'
}
} catch (exc) {
console.log(exc.message);
return exc.message;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment