1 line
3.4 KiB
JavaScript
1 line
3.4 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3851],{28140:function(e,s,a){"use strict";var t=a(64836);s.Z=void 0;var n=t(a(64938)),r=a(85893),i=(0,n.default)([(0,r.jsx)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1 13h-2v-6h2v6zm0-8h-2V7h2v2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},"1")],"InfoTwoTone");s.Z=i},76488:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/send-password-reset-link",function(){return a(43499)}])},82186:function(e,s,a){"use strict";a.d(s,{Z:function(){return n}});var t=a(85893);a(67294);function n(e){var s=e.message,a=e.className;return(0,t.jsxs)("div",{className:"info green"+(a?" "+a:""),children:[(0,t.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,t.jsx)("span",{children:s})]})}},43499:function(e,s,a){"use strict";a.r(s),a.d(s,{SendPassResetContext:function(){return x},__N_SSP:function(){return f},default:function(){return p}});var t=a(828),n=a(85893),r=a(67294),i=a(56217),l=a(24097),c=a(95264),o=a(86729),d=a(82186),u=a(28140);function m(e){var s=e.message;return(0,n.jsxs)("div",{className:"info gray",children:[(0,n.jsx)(u.Z,{fontSize:"small",color:"inherit",className:"opacity-50 text-gray-600"}),(0,n.jsx)("span",{className:"font-normal",children:s})]})}var h={},f=!0,x=r.createContext(h);function p(e){var s,a="Cloudbased SQL data management system | Datasquirel",u="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",h=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:a}),(0,n.jsx)("meta",{name:"description",content:u}),(0,n.jsx)(l.Z,{pageTitle:a,pageDescription:u,pagePathname:"/"})]}),f=(0,t.Z)(r.useState(!1),2),p=f[0],v=f[1],j=(0,t.Z)(r.useState(!1),2),g=j[0],w=j[1];return(0,n.jsx)(i.Z,{head:h,user:e.user,children:(0,n.jsx)(x.Provider,{value:{user:e.user},children:(0,n.jsx)("main",{children:(0,n.jsxs)("section",{children:[p&&(0,n.jsx)(c.Z,{}),g?(0,n.jsx)(d.Z,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,n.jsx)("div",{className:"paper",children:(0,n.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,n.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,n.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,n.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:function(e){v(!0),e.preventDefault();var s=e.target["email-address"].value;(0,o.Z)("/api/sendPasswordResetLink?email=".concat(s)).then((function(e){console.log(e),setTimeout((function(){v(!1)}),500),e.success&&w(!0)}))},children:[(0,n.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:(null===e||void 0===e||null===(s=e.user)||void 0===s?void 0:s.logged_in_status)?e.user.email:"",required:!0}),(0,n.jsx)("button",{children:"Send password reset Email"}),(0,n.jsx)(m,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}}},function(e){e.O(0,[9774,2888,179],(function(){return s=76488,e(e.s=s);var s}));var s=e.O();_N_E=s}]); |