Add MFA support
This commit is contained in:
24
app/routing/routers/auth/mfa.routes.js
Normal file
24
app/routing/routers/auth/mfa.routes.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const mfa_routes = {
|
||||
prefix: '/auth/mfa',
|
||||
|
||||
middleware: [
|
||||
|
||||
],
|
||||
|
||||
get: {
|
||||
'/setup': [
|
||||
'middleware::auth:UserOnly',
|
||||
'controller::auth:MFA.setup',
|
||||
],
|
||||
'/challenge': [
|
||||
'middleware::auth:DMZOnly',
|
||||
'controller::auth:MFA.challenge',
|
||||
],
|
||||
},
|
||||
|
||||
post: {
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = mfa_routes
|
||||
Reference in New Issue
Block a user