Nariman Jelveh 11 mesi fa
parent
commit
27ec2d7f1c
1 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. 7 3
      src/initgui.js

+ 7 - 3
src/initgui.js

@@ -229,9 +229,13 @@ window.initgui = async function(options){
         }).then(response => response.json())
         }).then(response => response.json())
         .then(async data => {
         .then(async data => {
             if(data.email && data.email !== window.user.email){
             if(data.email && data.email !== window.user.email){
-                UIAlert({
-                    message: 'You are not authorized to view this link.'
-                });
+                await UIWindowLogin({
+                    reload_on_success: true,
+                    send_confirmation_code: false,
+                    window_options:{
+                        has_head: false
+                    }
+                });    
             }else{
             }else{
                 UIAlert({
                 UIAlert({
                     type: 'success',
                     type: 'success',