Skip to content

Instantly share code, notes, and snippets.

View stasyanko's full-sized avatar
😀

Stanislav Yankovskiy stasyanko

😀
View GitHub Profile
@stasyanko
stasyanko / LoginController.js
Created February 17, 2017 14:10 — forked from psi-4ward/LoginController.js
Sails.JS JWT Auth
// controllers/LoginController.js
module.exports = {
index: function(req, res) {
var email = req.param('email');
var password = req.param('password');
// delay everthing to prevent bruteforce, dos and timing attacks
setTimeout(function() {