Skip to content

Instantly share code, notes, and snippets.

@kitwalker12
Forked from CodingFu/deviseCheck.js
Last active January 26, 2016 18:30
Show Gist options
  • Save kitwalker12/8842599384c1d896226c to your computer and use it in GitHub Desktop.
Save kitwalker12/8842599384c1d896226c to your computer and use it in GitHub Desktop.
Simple devise user login check in node.js
var bcrypt = require('bcrypt')
function checkUser(encrypted_password, password) {
bcrypt.compare(password, encrypted_password, function(err, res) {
console.log(err)
console.log(res) //true or false
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment