Update UIWindow2FASetup.js

This commit is contained in:
Nariman Jelveh
2024-05-06 00:02:46 -04:00
committed by KernelDeimos
parent 12c883b6fd
commit 75bd1bc4c8
+6 -3
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',