0.1.0 • Published 5 years ago

express-brute-sequelize v0.1.0

Weekly downloads
121
License
MIT
Repository
github
Last release
5 years ago

Sequelize store for express-brute

Sequelize(MySQL) store adapter for the express-brute.

Installation

npm install express-brute-sequelize

Usage

var ExpressBrute = require('express-brute');
var SequelizeStore = require('express-brute-sequelize');
var Sequelize = require('sequelize');

var sequelize = new Sequelize('test', 'root', 'root', {
  host: "127.0.0.1",
  dialect: "mysql",
  logging: false
});

new SequelizeStore(sequelize, 'bruteStore', {}, function(store) {
	var bruteforce = new ExpressBrute(store);
	app.post('/session',
		bruteforce.prevent, // error 403 if too many requests for this route in short time
		function(req, res, next){
			res.send('Success!');
		}
	);
});

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.

License

This project is licensed under the MIT license. See the LICENSE file for more info.

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

7 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago