%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ncf/static/js/
Upload File :
Create Path :
Current File : /home/opti/public_html/ncf/static/js/52.d41ef2c9.chunk.js

(this["webpackJsonpncf-nigeria"]=this["webpackJsonpncf-nigeria"]||[]).push([[52],{104:function(e,s,n){},155:function(e,s,n){},536:function(e,s,n){"use strict";n.r(s);var t,a,o=n(50),c=(n(1),n(155),n(104),n(54)),r=n(21),i=function(e){fetch("".concat(r.SERVER_URL,"/auth/reset-password"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(s){console.log(s.message,"json"),200===s.status?(localStorage.setItem("login-success",JSON.stringify(s.message)),window.location.href="".concat(r.CLIENT_URL,"signin")):422===s.status?(localStorage.setItem("login-error",JSON.stringify(s.message)),window.location.reload()):(console.log("Password change failed"),window.location.href="".concat(r.CLIENT_URL,"reset-password?").concat(e.code))}))},l=n(49),d=n(516),m=n(520),h=n(470),u=n(2);s.default=function(){return Object(u.jsxs)(j,{children:[Object(u.jsx)(c.a,{}),Object(u.jsx)(f,{children:Object(u.jsx)(p,{})})]})};var f=l.a.div(t||(t=Object(o.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"]))),j=l.a.section(a||(a=Object(o.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"]))),p=function(){return Object(u.jsxs)(d.a,{className:"signupform",name:"basic",initialValues:{remember:!0},onFinish:function(e){var s=e.new_password,n=e.confirm_password,t=window.location.search,a=new URLSearchParams(t).get("code");i({code:a,password:s,confirm_password:n})},onFinishFailed:function(e){console.log("Failed:",e)},autoComplete:"off",children:[Object(u.jsx)("h1",{className:"text-white text-center",children:"Reset Password"}),Object(u.jsxs)("div",{className:"form-item-group",children:[Object(u.jsx)(d.a.Item,{className:"formItemcon",name:"new_password",rules:[{required:!0,message:"Please enter your new password"}],children:Object(u.jsx)(m.a.Password,{placeholder:"New Password",className:"formItem"})}),Object(u.jsx)(d.a.Item,{className:"formItemcon",name:"confirm_password",rules:[{required:!0,message:"Please confirm your password"}],children:Object(u.jsx)(m.a.Password,{placeholder:"Confirm Password",className:"formItem"})})]}),Object(u.jsx)(d.a.Item,{children:Object(u.jsx)(h.a,{className:"formButton",type:"primary",htmlType:"submit",children:"Reset"})}),Object(u.jsx)(d.a.Item,{className:"signuplink text-base  text-center",children:Object(u.jsxs)("h5",{children:["Don't have an Account yet ",Object(u.jsx)("a",{href:"/signup",children:"Sign Up"})]})})]})}}}]);
//# sourceMappingURL=52.d41ef2c9.chunk.js.map

Zerion Mini Shell 1.0