PageSourceSearch

https://www.englishexpress.ai/_next/static/chunks/pages/forgot-d381eb65d66bcd42.js

js englishexpress.ai collected 2026-10-05 12:14:22 UTC 4,709 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3993],{84558:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot",function(){return t(43212)}])},43212:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>g});var a=t(74848),r=t(96540),o=t(91106),l=t.n(o),i=t(23093);t(74338);var n=t(86715),c=t(10813);t(13368);var d=t(33013),u=t(79103);t(31354);let g=()=>{let{data:e,status:s}=(0,d.useSession)(),{data:t,newstatus:o}=(0,d.useSession)(),[g,h]=(0,r.useState)(!1),[x,p]=(0,r.useState)(!1),[m,f]=(0,r.useState)(),v=(0,n.useRouter)();(0,r.useEffect)(()=>{"authenticated"===s&&t&&(console.log("Session data:",t),console.log(t.user),(async()=>{p(!0),f(t.user.email)})())},[s,t]);let b=async e=>{h(!0),e.preventDefault();let s=await fetch("".concat("https://backend.englishexpress.ai","/sent_forgot/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:m,loginwithgoogle:x})}),t=await s.json();h(!1),t.success?(i.oR.success("Verification link sent successfully!",{position:"top-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}),setTimeout(()=>{v.push("/")},1e3)):i.oR.error(t.message,{position:"top-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.A,{}),(0,a.jsxs)("body",{className:"bg-white min-h-screen dark:bg-[#080c11]",children:[(0,a.jsx)(i.N9,{position:"bottom-right",autoClose:2e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),(0,a.jsx)("div",{className:"min-h-full flex items-center text-center mt-20 justify-center my-auto py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"max-w-md w-full space-y-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:"/6.png",class:"hidden dark:flex h-16 rounded-full w-auto mx-auto",alt:"logo"}),(0,a.jsx)("img",{src:"/5.png",class:"dark:hidden h-16 rounded-full w-auto mx-auto",alt:"logo"}),(0,a.jsx)("h2",{className:"mt-6 text-center text-3xl tracking-tight  font-montserrat text-gray-900 dark:text-gray-200",children:"Forgot password"}),(0,a.jsxs)("p",{className:"mt-2 font-futura text-center text-sm text-gray-600 dark:text-gray-300",children:["Don't have an account ?",(0,a.jsx)(l(),{legacyBehavior:!0,href:"/signup",children:(0,a.jsx)("a",{className:"font-medium font-futura2 text-blue-600 hover:text-blue-500",children:" Signup "})})]})]}),(0,a.jsx)("div",{class:"mt-7 flex flex-col gap-2"}),(0,a.jsxs)("form",{onSubmit:b,className:"mt-8 space-y-6",action:"#",method:"POST",children:[(0,a.jsxs)("div",{class:"relative flex items-center ",children:[(0,a.jsx)("span",{class:"absolute",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6 mx-3 text-gray-300 dark:text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",children:(0,a.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),(0,a.jsx)("input",{onChange:e=>{"email"==e.target.name&&f(e.target.value)},value:"authenticated"==s?e.user.email:m,id:"email",name:"email",type:"email",autoComplete:"email",required:!0,class:"block w-full py-3 text-gray-700 bg-white border rounded-lg px-11 dark:bg-gray-900 dark:text-gray-300 dark:border-gray-600 focus:border-blue-400 dark:focus:border-blue-300 focus:ring-blue-300 focus:outline-none focus:ring focus:ring-opacity-40",placeholder:"Email address"})]}),g&&(0,a.jsx)("div",{className:"text-end",children:(0,a.jsx)(c.pf,{visible:!0,height:"40",width:"40",color:"#4fa94d",ariaLabel:"tail-spin-loading",radius:"1",wrapperStyle:{},wrapperClass:""})}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{type:"submit",className:"group disabled font-futura2 relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-blue-700 hover:bg-blue-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 ",children:[(0,a.jsx)("span",{className:"absolute left-0 inset-y-0 flex items-center pl-3",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-gray-300 group-hover:text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),"Send Verification Link"]})})]})]})})]})]})}},13368:(e,s,t)=>{e.exports=t(86085)}},e=>{var s=s=>e(e.s=s);e.O(0,[9151,1106,3093,3540,226,2648,636,6593,8792],()=>s(84558)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.