%PDF- %PDF-
Direktori : /home/opti/public_html/ncf/static/js/ |
Current File : /home/opti/public_html/ncf/static/js/53.49488d41.chunk.js |
(this["webpackJsonpncf-nigeria"]=this["webpackJsonpncf-nigeria"]||[]).push([[53],{104:function(e,n,t){},155:function(e,n,t){},535:function(e,n,t){"use strict";t.r(n);var i,o,c=t(50),s=(t(1),t(155),t(104),t(54)),a=t(21),r=function(e){fetch("".concat(a.SERVER_URL,"/auth/forgot-password"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?(localStorage.setItem("login-success",JSON.stringify(e.message)),window.location.href="".concat(a.CLIENT_URL,"signin")):403===e.status?(localStorage.setItem("login-error",JSON.stringify(e.message)),window.location.reload()):console.log("An error occured")}))},l=t(49),m=t(516),u=t(520),g=t(470),h=t(103),d=t(2);n.default=function(){var e=localStorage.getItem("login-error");return setTimeout((function(){localStorage.removeItem("login-error")}),500),Object(d.jsxs)(f,{children:[Object(d.jsx)(s.a,{}),Object(d.jsxs)(j,{children:[e?Object(d.jsx)(h.a,{color:"danger",children:e}):null,Object(d.jsx)(b,{})]})]})};var j=l.a.div(i||(i=Object(c.a)(["\n width: 100%;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: #0000008f;\n"]))),f=l.a.section(o||(o=Object(c.a)(["\n width: 100%;\n min-height: 100vh;\n background: url('assets/images/banner/species.png');\n background-size: cover;\n background-position: center;\n"]))),b=function(){return Object(d.jsxs)(m.a,{className:"signupform",name:"basic",initialValues:{remember:!0},onFinish:function(e){var n=e.email;r({email:n})},onFinishFailed:function(e){console.log("Failed:",e)},autoComplete:"off",children:[Object(d.jsx)("h1",{className:"text-white text-center",children:"Forgot Password"}),Object(d.jsx)("div",{className:"form-item-group",children:Object(d.jsx)(m.a.Item,{className:"formItemcon",name:"email",rules:[{required:!0,message:"Please enter your email"}],children:Object(d.jsx)(u.a,{placeholder:"Email",className:"formItem"})})}),Object(d.jsx)(m.a.Item,{children:Object(d.jsx)(g.a,{className:"formButton",type:"primary",htmlType:"submit",children:"Submit"})}),Object(d.jsx)(m.a.Item,{className:"signuplink text-center",children:Object(d.jsxs)("h5",{children:["Don't have an Account yet ",Object(d.jsx)("a",{href:"/signup",children:"Sign Up"})]})})]})}}}]); //# sourceMappingURL=53.49488d41.chunk.js.map