瀏覽代碼

Update initgui.js

Nariman Jelveh 11 月之前
父節點
當前提交
27ec2d7f1c
共有 1 個文件被更改,包括 7 次插入3 次删除
  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(async data => {
             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{
                 UIAlert({
                     type: 'success',