- update dependencies
- use eslint
- update dependencies
- use make instead grunt
- set
autocomplete="off"
- use Bootstrap conditional classes
- use
utils.destroy
to kill session - update dependencies
- update lockit-utils
- refactor code
- update dependencies
-
requires Express 4.x
-
makes use of
express.Router()
. No need to passapp
around as argument.old
var DeleteAccount = require('lockit-delete-account'); var deleteAccount = new DeleteAccount(app, config, adapter);
new
var DeleteAccount = require('lockit-delete-account'); var deleteAccount = new DeleteAccount(config, adapter); app.use(deleteAccount.router);
-
proper Error handling. All Errors are piped to next middleware.
old
if (err) console.log(err);
new
if (err) return next(err);
Make sure you have some sort of error handling middleware at the end of your routes (is included by default in Express 4.x apps if you use the
express-generator
).
username
becomesname