PageSourceSearch

https://assets.logic.world/web/ResetPassword-kyznxdth.js

js logic.world collected 2026-10-10 00:36:40 UTC 2,845 bytes, 1 lines download raw bytes

1try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`91dd1807-fbd7-47ff-933d-c1d8b90f1047`,e._sentryDebugIdIdentifier=`sentry-dbid-91dd1807-fbd7-47ff-933d-c1d8b90f1047`)})()}catch{}import{A as e,C as t,E as n,K as r,O as i,T as a,X as o,_t as s,at as c,c as l,dt as u,k as d,v as f}from"./@[email protected][email protected][email protected][email protected]_-jxrs2q3w.js";import{i as p}from"./[email protected][email protected][email protected]_-fl4zvr4k.js";import{j as m}from"./html-oa9xpjfb.js";import{i as h,o as g,r as _}from"./[email protected]";import{a as v,i as y,r as b,s as x,t as S}from"./forms-oaw6x9r8.js";l();var C={class:`container`},w={class:`row`},T={class:`col-md-8`},E={class:`card-body`},D={class:`row`},O={class:`col`},k={class:`row mt-3`},A={class:`col`},j={class:`mt-3 d-flex justify-content-end align-items-center`},M={key:0,class:`me-3 text-success text-end`},N=e({__name:`ResetPassword`,setup(e){let l=p(),N=new S(_({password:h().min(8).required(`Password is required`),confirmPassword:h().oneOf([g(`password`)],`Passwords must match`).required(`Confirmation required`)}),F),P=u(!1);l.query.key||(location.href=`/`);async function F(){P.value=!1;let e=await fetch(`/auth/reset-password`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({password:N.data.password,key:l.query.key})});e.ok||m(await e.json()),N.reset(),P.value=!0}return(e,l)=>{let u=o(`title-tag`),p=o(`meta-tag`),m=o(`router-link`);return r(),n(f,null,[d(u,{title:`Reset password`}),d(p,{name:`robots`,content:`noindex`}),t(`div`,C,[t(`div`,w,[l[6]||=t(`div`,{class:`col-md`},null,-1),t(`div`,T,[l[5]||=t(`h1`,{class:`display-4 text-center`},`Reset password`,-1),d(s(v),{class:`card`,form:s(N)},{default:c(()=>[t(`div`,E,[l[4]||=t(`p`,{class:`text-center`},`Please enter your new password`,-1),t(`div`,D,[l[0]||=t(`div`,{class:`col d-flex justify-content-end align-items-center`},[t(`span`,null,`New password`)],-1),t(`div`,O,[d(s(y),{type:`password`,name:`password`,placeholder:`Enter your new password`})])]),t(`div`,k,[l[1]||=t(`div`,{class:`col d-flex justify-content-end align-items-center`},[t(`span`,null,`Confirm password`)],-1),t(`div`,A,[d(s(y),{type:`password`,name:`confirmPassword`,placeholder:`Same as above`})])]),t(`div`,j,[d(s(b),{class:`me-3 text-end`,is:`span`,inline:``}),P.value?(r(),n(`span`,M,[l[3]||=i(`Your password has been successfully reset, you may now `,-1),d(m,{class:`text-decoration-underline`,to:{name:`login`}},{default:c(()=>[...l[2]||=[i(`log in`,-1)]]),_:1})])):a(``,!0),d(s(x),{class:`flex-shrink-0`,text:`Reset password`})])])]),_:1},8,[`form`])]),l[7]||=t(`div`,{class:`col-md`},null,-1)])])],64)}}});export{N 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.