Re-enter password when switching panels?

I have different panels, some have more sensitive information than others. I want that if user switch to their personal information panel that they re enter a password or a personal code to gain access. How can you implement something like that? Also when they leave the panel the “special privileges “ should expire immediately. I first thought by setting a special setting and checking for it in a middleware but maybe there is a better solution?
1 Reply
toeknee
toeknee5mo ago
you'd have to have a middleware and a custom page where people are redirected until a session cookie confirms? say 'access_panel_x' => true within the session which is set on confimring password?
Want results from more Discord servers?
Add your server