PageSourceSearch

https://naijabarrister.com/_next/static/chunks/pages/reset-password/[token]-4e8c3145963f7139.js

js naijabarrister.com collected 2026-10-02 16:04:29 UTC 5,563 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3538],{32308:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password/[token]",function(){return s(4631)}])},97207:function(e,r,s){"use strict";var t=s(85893),a=(s(67294),s(80471));r.Z=function(e){var r=e.children,s=e.classes,n=e.isSubmitting;return(0,t.jsx)("button",{className:"".concat(s," button"),disabled:n,type:"submit",children:n?(0,t.jsx)(a.frZ,{size:"1.2em",className:"animate animate-spin mx-auto"}):r})}},81070:function(e,r,s){"use strict";s.d(r,{Z:function(){return i}});var t=s(85893),a=s(9008),n=s(11163);function i(e){var r=e.title,s=e.description,i=e.image,o=e.url,c=(0,n.useRouter)(),d="".concat("https://naijabarrister.com").concat(c.asPath);return(0,t.jsxs)(a.default,{children:[(0,t.jsx)("title",{children:r?"".concat(r," - ").concat("NaijaBarrister | Find verified lawyers in Nigeria"):"NaijaBarrister | Find verified lawyers in Nigeria"}),(0,t.jsx)("meta",{name:"description",content:s||"Providing easy access to Nigerian laws, lawyers and legal resources. Naijabarrister.com is managed by Legalhub Associates and Solutions Ltd, a limited liability company registered in Nigeria"}),(0,t.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,t.jsx)("meta",{property:"og:type",content:"article"}),(0,t.jsx)("meta",{property:"og:image",content:i||"".concat("https://naijabarrister.com","/images/logo.png")}),(0,t.jsx)("meta",{property:"og:url",content:o||d}),(0,t.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,t.jsx)("meta",{property:"og:site_name",content:"NaijaBarrister | Find verified lawyers in Nigeria"}),(0,t.jsx)("meta",{name:"robots",content:"index,follow"})]})}},47355:function(e,r,s){"use strict";s.d(r,{Z:function(){return n}});var t=s(85893),a=s(81070);function n(e){var r=e.children,s=e.title,n=e.url,i=e.image,o=e.description;return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsx)(a.Z,{title:s,url:n,image:i,description:o}),r]})}},43977:function(e,r,s){"use strict";var t=s(85893);s(67294);r.Z=function(e){var r=e.children;return(0,t.jsx)("div",{className:"text-sm text-red-500 my-1",children:r})}},4631:function(e,r,s){"use strict";s.r(r),s.d(r,{__N_SSP:function(){return N},default:function(){return b}});var t=s(34051),a=s.n(t),n=s(85893),i=s(67294),o=s(40611),c=s(47355),d=s(41664),u=s(25675),l=s(82175),m=s(43977),p=s(8193),x=s(97207),f=s(74231),h=s(11163),w=s(74931),j=s(2282);function v(e,r,s,t,a,n,i){try{var o=e[n](i),c=o.value}catch(d){return void s(d)}o.done?r(c):Promise.resolve(c).then(t,a)}var g=f.Ry().shape({password:f.Z_().min(8,"Minimum of 8 characters").max(48,"Maximum of 48 characters").required("Password is required"),confirm_password:f.Z_().oneOf([f.iH("password")],"Passwords dont match").required("Confirm your password")}),N=!0;function b(e){e.user;var r=(0,i.useState)(!1),s=r[0],t=r[1],f=(0,h.useRouter)(),N=(0,j.a)().setUser;return(0,n.jsxs)(c.Z,{title:"Reset Password",children:[(0,n.jsx)("div",{className:"mx-auto text-center md:mt-24 mt-16",children:(0,n.jsx)(d.default,{href:"/",children:(0,n.jsx)("a",{className:"text-slate-800 text-xl",children:(0,n.jsx)(u.default,{src:"/images/logo.svg",alt:"NaijaBarrister",width:120,height:48})})})}),(0,n.jsx)("div",{className:"max-w-md mx-auto",children:(0,n.jsxs)("div",{className:"bg-white md:p-8 p-4 rounded-lg drop-shadow-md border border-slate-300",children:[(0,n.jsx)("h4",{className:"font-bold text-lg",children:"Reset your password"}),(0,n.jsx)(l.J9,{initialValues:{password:"",confirm_password:""},validationSchema:g,onSubmit:function(){var e,r=(e=a().mark((function e(r){var s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.token=f.query.token,e.prev=1,e.next=4,o.Z.post("/api/users/reset-password/",r);case 4:s=e.sent.data,N(s),w.ZP.success("Your password reset was successfull"),f.push("/dashboard"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0),w.ZP.error("An error occurred, please try again");case 14:case"end":return e.stop()}}),e,null,[[1,10]])})),function(){var r=this,s=arguments;return new Promise((function(t,a){var n=e.apply(r,s);function i(e){v(n,t,a,i,o,"next",e)}function o(e){v(n,t,a,i,o,"throw",e)}i(void 0)}))});return function(e){return r.apply(this,arguments)}}(),children:function(e){var r=e.errors,a=e.touched,i=e.isSubmitting;return(0,n.jsxs)(l.l0,{children:[(0,n.jsxs)("div",{className:"field relative",children:[(0,n.jsx)("label",{htmlFor:"password",children:"Password"}),(0,n.jsx)(l.gN,{type:s?"text":"password",name:"password",id:"password",autoComplete:"new-password",className:"".concat(r.password&&a.password?"has-error":""," input")}),(0,n.jsx)("button",{className:"".concat(s?"text-gray-400":"text-gray-300"," absolute z-10 top-8 right-2 text-3xl"),onClick:function(){return t(!s)},type:"button",children:s?(0,n.jsx)(p.Zju,{}):(0,n.jsx)(p.I0d,{})}),(0,n.jsx)(l.Bc,{component:m.Z,name:"password"})]}),(0,n.jsxs)("div",{className:"field",children:[(0,n.jsx)("label",{htmlFor:"confirm_password",children:"Confirm password"}),(0,n.jsx)(l.gN,{type:s?"text":"password",name:"confirm_password",id:"confirm_password",className:"".concat(r.confirm_password&&a.confirm_password?"has-error":""," input")}),(0,n.jsx)(l.Bc,{component:m.Z,name:"confirm_password"})]}),(0,n.jsx)("div",{className:"field",children:(0,n.jsx)(x.Z,{type:"sbumit",classes:"primary button full",isSubmitting:i,children:"Reset Password"})})]})}})]})})]})}}},function(e){e.O(0,[955,4617,3276,2175,4231,9774,2888,179],(function(){return r=32308,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.