PageSourceSearch

https://auf.tv/assets/set-password-p3q9wOWY.js

js auf.tv collected 2026-10-07 18:59:38 UTC 1,460 bytes, 1 lines download raw bytes

1import{j as e,e as c,l as g}from"./index-41K_R4Vg.js";import{e as t,k as v}from"./vendor-react-DAZFsden.js";import{A as x}from"./AuthCard-B30m_aj5.js";import{F as p}from"./FormInput-JBIvnzDS.js";import{F as j}from"./FormButton-C0xTn2H6.js";import{F as b}from"./FormError-D29iYOvG.js";import"./vendor-query-CCOV1duv.js";const y="https://api.auf.tv/api/v2.7/user/password";function E(){const[r,u]=t.useState(""),[i,d]=t.useState(""),[l,o]=t.useState(""),[m,n]=t.useState(!1),f=v(),w=async a=>{if(a.preventDefault(),r!==i){o("Las contraseñas no coinciden.");return}n(!0);try{const s=await fetch(y,{method:"POST",body:JSON.stringify({password:r}),headers:{"Content-Type":"application/json","Authentication-Token":g()}}),h=await s.json();s.status===200?f("/browse"):(o(h.message),n(!1))}catch(s){o(s.message),n(!1)}};return e.jsx(x,{title:"Cambiá tu contraseña",backLink:"/my-account",children:e.jsxs("form",{className:"auth-form",onSubmit:w,children:[e.jsx(p,{id:"set-pass-new",label:"Nueva contraseña",type:"password",placeholder:"Nueva contraseña",value:r,onChange:a=>u(a.target.value),required:!0,icon:c,autoComplete:"new-password"}),e.jsx(p,{id:"set-pass-repeat",label:"Repetir nueva contraseña",type:"password",placeholder:"Repetir nueva contraseña",value:i,onChange:a=>d(a.target.value),required:!0,icon:c,autoComplete:"new-password"}),e.jsx(b,{message:l}),e.jsx(j,{loading:m,loadingText:"Guardando...",children:"Cambiar"})]})})}export{E as default};

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.