PageSourceSearch

https://ilccnl.it/_next/static/chunks/pages/reimposta-password-aad2b33a7bf167e8.js

js ilccnl.it collected 2026-10-07 07:18:42 UTC 3,335 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4303],{37240:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reimposta-password",function(){return a(69379)}])},69379:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var n=a(47568),r=a(10092),s=a(85893),l=a(11163),o=a(67294),i=a(73613);function c(){var e=(0,l.useRouter)(),t=e.query.oobCode,a=e.query.mode,c=(0,o.useState)(""),u=c[0],d=c[1],m=(0,o.useState)(""),p=m[0],f=m[1],h=(0,o.useState)(!1),x=h[0],g=h[1],w=(0,i.a)();(0,o.useEffect)((function(){(0,n.Z)((function(){var e,s,l,o;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return"verifyAndChangeEmail"===a&&t.length>0&&!x?[4,w.verifyActionCode(t)]:[3,3];case 1:return s=i.sent(),l=s.data.previousEmail,o=s.data.email,[4,null===(e=w.user)||void 0===e?void 0:e.getIdToken()];case 2:i.sent(),w.completeEmailChange(t).then(function(){var e=(0,n.Z)((function(e){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return[4,fetch("".concat("https://api.v2.ilccnl.it/v1","/user/apply-email-change/").concat(l,"/").concat(o),{method:"POST",headers:{"Content-Type":"application/json"}})];case 1:return e.sent(),g(!0),[2]}}))}));return function(t){return e.apply(this,arguments)}}()).catch((function(e){})),i.label=3;case 3:return[2]}}
1))}))()}),[a,t,x,w]);return t?x?(0,s.jsxs)("div",{className:"lg:w-1/3 md:w-1/2 w-full p-2 rounded-lg border mx-auto mt-10 shadow-lg",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold",children:"Email verificata correttamente"}),(0,s.jsx)("p",{children:"Potrai ora accedere con la nuova email verificata."})]}):(0,s.jsxs)("div",{className:"lg:w-1/3 md:w-1/2 w-full p-2 rounded-lg border mx-auto mt-10 shadow-lg",children:[(0,s.jsx)("h1",{className:"text-center text-2xl font-bold",children:"Reimposta password"}),(0,s.jsx)("p",{className:"text-center",children:"Stai per reimpostare la password del tuo account."}),(0,s.jsx)("p",{className:"text-center",children:"Per favore inserisci una nuova password."}),(0,s.jsxs)("form",{onSubmit:function(a){a.preventDefault(),w.completePasswordReset(t,u).then((function(){alert("La tua password \xe8 stata reimpostata. Puoi effettuare il login."),e.push("/auth/login")}))},children:[(0,s.jsxs)("div",{className:"flex flex-col mt-5 items-center",children:[(0,s.jsx)("label",{className:"text-sm font-bold ",children:"Nuova password"}),(0,s.jsx)("input",{className:"w-full mb-5 p-2 rounded-lg border border-gray-300",minLength:8,value:u,onChange:function(e){return d(e.target.value)},type:"password"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)("label",{className:"text-sm font-bold",children:"Conferma password"}),(0,s.jsx)("input",{className:"w-full p-2 rounded-lg border border-gray-300",value:p,onChange:function(e){return f(e.target.value)},type:"password"}),(0,s.jsx)("button",{className:"mt-5 bg-primary disabled:bg-selected disabled:text-gray-600 text-white w-full p-2 rounded-lg border border-gray-300",type:"submit",disabled:u!==p||""===u,children:"Reimposta password"})]})]})]}):(0,s.jsx)("div",{className:"lg:container mx-auto mt-5",children:(0,s.jsx)("h1",{className:"text-lg",children:"Questo link non \xe8 pi\xf9 valido!"})})}}},function(e){e.O(0,[9774,2888,179],(function(){return t=37240,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.