PageSourceSearch

https://vc.ru/assets/PasswordChange-885FC4Yy.js

js vc.ru collected 2026-09-24 07:38:38 UTC 1,321 bytes, 1 lines download raw bytes

1import{d as h,j as d,n as l,h as w,y as f,o as _,a as y,c as F,w as x,e as b,f as a}from"./index-DcSVvNrM.js";import{u as k,_ as g}from"./AuthForm.vue_vue_type_style_index_0_lang-D40eGawX.js";import{_ as C}from"./AuthPageLayout.vue_vue_type_style_index_0_lang-DnYPZWDO.js";import"./useAsync-C6qKF5e5.js";const S=h({__name:"PasswordChange",props:{token:{}},setup(c){const e=c,o=d(),{changePassword:p}=l(),{t}=w(),{alert:r,AlertType:n}=f(),{schema:i,submit:m}=k({password:{type:"password",placeholder:t("auth.authForm.passwordField"),autocomplete:"new-password"},passwordConfirmation:{type:"password",placeholder:t("auth.authForm.repeatPasswordField"),autocomplete:"new-password"}},{onSubmit:async({password:s,passwordConfirmation:u})=>{if(e.token!==void 0){if(s!==u)throw new Error("passwordsDoNotMatch");await p(s,e.token)}},onSuccess:async()=>{await o.replace({path:"/"}),r({type:n.Success,text:t("auth.authForm.passwordChanged")})}});return _(async()=>{e.token===void 0&&(await o.replace({path:"/"}),r({type:n.Error,text:t("auth.authForm.passwordRecoveryFailed")}))}),(s,u)=>(y(),F(C,{title:a(t)("auth.authForm.changePassword")},{default:x(()=>[b(g,{schema:a(i),"submit-text":a(t)("auth.authForm.loginButton"),"on-submit":a(m)},null,8,["schema","submit-text","on-submit"])]),_:1},8,["title"]))}});export{S 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.