(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7570],{20343:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/login",function(){return n(54211)}])},54211:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSP:function(){return a},default:function(){return o}});var i=n(85893),l=(n(67294),n(9008)),t=n.n(l),r=n(86729),a=!0;function o(e){e.user;var s=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,i.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,i.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,i.jsx)(t(),{children:s}),(0,i.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,i.jsx)(c,{}),(0,i.jsxs)("form",{onSubmit:function(e){e.preventDefault();var s=e.target;(0,r.Z)("/api/admin/loginSuUser",{method:"post",body:{email:s.email.value,password:s.password.value,authKey:s["auth-key"].value}}).then((function(e){window.location.reload()}))},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,i.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,i.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,i.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,i.jsx)("button",{children:"Login"})]})]})]})}function c(){return(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,i.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,i.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,i.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,i.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,i.jsxs)("ul",{className:"p-0",children:[(0,i.jsxs)("li",{children:["Password:"," ",(0,i.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,i.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,i.jsxs)("li",{children:["Auth Key:"," ",(0,i.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,i.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}}},function(e){e.O(0,[9774,2888,179],(function(){return s=20343,e(e.s=s);var s}));var s=e.O();_N_E=s}]);