Last active
August 29, 2015 14:22
-
-
Save ramsaylanier/69e5788dbc89269bf4cc to your computer and use it in GitHub Desktop.
loginFromExtension for PushQuotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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