Update UIWindow2FASetup.js

This commit is contained in:
Nariman Jelveh 2024-05-03 18:20:23 -07:00 committed by KernelDeimos
parent 12c883b6fd
commit 75bd1bc4c8

View File

@ -176,9 +176,12 @@ const UIWindow2FASetup = async function UIWindow2FASetup () {
win = await UIComponentWindow({
component,
// on_before_exit: async () => {
// return true;
// },
on_before_exit: async () => {
if ( ! stepper.get('done') ) {
promise.resolve(false);
}
return true
},
title: '2FA Setup',
app: 'instant-login',