Open phivk opened 3 years ago
Getting into multiple passwords and multiple routes seems like growing scope of this simple module...
Anyhow, there's many ways to peel-an-orange, and I would think some parent-child relationship is clearer than matching array index between separate variables.
passwords: [
'myPass1': [
'/path44ee',
'/path55rr',
'/path22gg'
],
'myPass2': [
'/path88kkkkk',
'/path33eeeee',
'/path55555'
]
]
Hi @phivk sorry i havent replied sooner.
I think this is out of scope from the original intention of this module. It is only meant to protect a single part of the website.
Thank you for suggesting the idea though. Also i am not maintaining this module as much as before, please feel free to fork and extend it.
No worries @stephenkr, I have actually done a rearchitecture of my project, which means I no longer have the use case for this feature anymore... Feel free to close the issue if you like.
I have use case where I need multiple routes protected with different passwords.
I could imagine something like this in nuxt.config.js: