This commit is contained in:
Benjamin Toby
2024-12-05 08:03:33 +01:00
parent 9686a22c96
commit 3ffd2d6777
821 changed files with 3251 additions and 91996 deletions
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9634],{18098:(e,s,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/login",function(){return l(83254)}])},83254:(e,s,l)=>{"use strict";l.r(s),l.d(s,{__N_SSP:()=>r,default:()=>d});var n=l(74848);l(96540);var i=l(13368),a=l.n(i),t=l(23698),r=!0;function d(e){let{user:s}=e,l=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,n.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,n.jsx)(a(),{children:l}),(0,n.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,n.jsx)(o,{}),(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault();let s=e.target;(0,t.A)("/api/admin/loginSuUser",{method:"post",body:{email:s.email.value,password:s.password.value,authKey:s["auth-key"].value}}).then(e=>{window.location.reload()})},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,n.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,n.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,n.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,n.jsx)("button",{children:"Login"})]})]})]})}function o(){return(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,n.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,n.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,n.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,n.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,n.jsxs)("ul",{className:"p-0",children:[(0,n.jsxs)("li",{children:["Password:"," ",(0,n.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,n.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,n.jsxs)("li",{children:["Auth Key:"," ",(0,n.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,n.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(18098)),_N_E=e.O()}]);