eventsService - backoffice loaded listener?
# help-with-umbraco
m
I'm trying to enforce MFA for backoffice users. I've found a workaround that opens the "Configure MFA" dialog after a non-mfa user logs in, but it's very easy to bypass by simply changing the url to a content item editor url - another dialog opens asking if you want to keep or discard your changes, and after clicking either of them, the "Configure MFA" dialog is gone forever until the next time logging in. This method is using
eventsService.on("app.ready", ...)
to open the prompt to configure mfa. I'm looking for something more like "app.pageLoaded" - something like that, any time a user is in the backoffice and doesn't have mfa configured, I want to intercept that. Is this possible?
2 Views