@mezielabs/adonis-confirm-password
v1.0.2
Published
Easily allow users to confirm password before carrying out certain actions.
Downloads
4
Readme
adonis-confirm-password
Tagline
A short brief
Installation
npm install @mezielabs/adonis-confirm-password
Then configure the package:
node ace configure @mezielabs/adonis-confirm-password
Usage
Register the middleware:
Server.middleware.registerNamed({
// ...other middlewares
confirmPassword: () => import('@ioc:Mezielabs/ConfirmPasswordMiddleware'),
})
await ConfirmPassword.confirm(auth, auth.user!.email, request.input('password'), session)