Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/learnoid.codeskitter.site/public/build/assets/
Upload File :
Current File : /home/users/unlimited/www/learnoid.codeskitter.site/public/build/assets/ResetPassword-DrvwDWCE.js

import{_ as p,r as c,h as u,c as n,a as s,t as i,w as h,b as v,G as _,v as g,f as w,o as r,z as f,S as y}from"./app-DM0q11P6.js";/* empty css            */const b={class:"bg-light vh-100 d-flex align-items-center justify-content-center",style:{height:"100vh"}},x={class:"login-wizard bg-white col-12 col-lg-8 theme-shadow"},P={class:"row"},j={class:"col-12 col-lg-6 px-5 py-4"},k={class:"d-flex h-100"},S={class:"my-auto w-100"},$={class:"fw-bold mb-3"},B={class:"text-muted"},R={class:"mb-2"},C=["placeholder"],E={key:0,class:"text-danger my-2"},N={type:"submit",class:"btn btn-primary w-100 rounded-pill mt-3"},T={__name:"ResetPassword",setup(V){const d=w(),o=c(""),a=c("");u(()=>{o.value&&(a.value="")});const m=async()=>{var t,l;const e=await f.post("/reset-password",{email:o.value},{headers:{"Content-Type":"application/json",Accept:"application/json"}});((t=e==null?void 0:e.data)==null?void 0:t.data)===500?a.value=(l=e==null?void 0:e.data)==null?void 0:l.message:(y.fire({icon:"success",title:"Success",text:"Password reset link sent to your email address",showConfirmButton:!1,timer:1500}),d.push(`/verify_otp?email=${o.value}`))};return(e,t)=>(r(),n("section",b,[s("section",x,[s("div",P,[s("div",j,[t[1]||(t[1]=s("img",{src:"/assets/images/logo-new.png",class:"object-fit-cover",alt:"Login",height:"50px"},null,-1)),s("div",k,[s("div",S,[s("h3",$,i(e.$t("Recover Password")),1),s("span",B,i(e.$t("We will send you a OTP code to recover your password")),1),s("form",{class:"my-4",onSubmit:h(m,["prevent"])},[s("div",R,[v(s("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=l=>o.value=l),class:"form-control",placeholder:e.$t("Email address")},null,8,C),[[g,o.value]]),a.value?(r(),n("p",E,i(a.value),1)):_("",!0)]),s("button",N,i(e.$t("Proceed Next")),1)],32)])])]),t[2]||(t[2]=s("div",{class:"d-none d-lg-block col-lg-6"},[s("img",{src:"/assets/images/login-bg.png",class:"side-image object-fit-cover w-100"})],-1))])])]))}},M=p(T,[["__scopeId","data-v-cc076e7e"]]);export{M as default};