This file contains hidden or 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
var crypto = require('crypto'); | |
var iterations = 1000; | |
var bytes = 32; | |
var aud = "Custom"; | |
var masterKey = "Your-Master-Key"; | |
function insert(item, user, request) { | |
var accounts = tables.getTable('accounts'); | |
if (request.parameters.login) { | |
// this is a login attempt |