PageSourceSearch

https://ded-dobryak.ru/assets/NewPasswordView-DPgduLKB.js

js ded-dobryak.ru collected 2026-10-06 06:52:19 UTC 1,715 bytes, 1 lines download raw bytes

1import{n as m,h as u,l as f,w as n,k as v,o as w,b as e,p as h,q as _,v as g,e as b,u as y,R as x,d as k,t as V,s as N}from"./index-djJMlqlh.js";import{c as R}from"./CheckFunctions-8nTnhWpQ.js";import{n as o}from"./notify-3HJcEM3b.js";import{A as q}from"./AuthShell-CDjPP0_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const A={class:"t-inputgroup input-group-lg"},B={class:"t-inputgroup input-group-lg"},S=["value","disabled"],C={class:"t-bottom-text"},F={__name:"NewPasswordView",setup(E){const l=m(),p=v(),i=String(l.query.code||""),s=u(""),a=u(!1),d=async()=>{if(!i){o("Отсутствует код восстановления. Перейдите по ссылке из письма.");return}const r=R(s.value);if(r!==!0){o(r);return}a.value=!0;try{await V.post("/api/auth/reset-password",{code:i,password:s.value,passwordConfirmation:s.value}),await o("Пароль успешно изменен","success"),p.push("/entrance")}catch(t){o(N(t))}finally{a.value=!1}};return(r,t)=>(w(),f(q,{bg:"#1F63AE",cover:"/img/fon4.jpg",title:"Изменить пароль"},{default:n(()=>[e("form",{onSubmit:h(d,["prevent"])},[e("div",A,[_(e("input",{placeholder:"Введите новый пароль",class:"form-control height_50",id:"password",type:"password",name:"password","onUpdate:modelValue":t[0]||(t[0]=c=>s.value=c),required:""},null,512),[[g,s.value]])]),e("div",B,[e("input",{class:"submit-button btn-lg height_50",type:"submit",id:"register",value:a.value?"СОХРАНЯЕМ…":"ИЗМЕНИТЬ",disabled:a.value},null,8,S)])],32),e("div",C,[b(y(x),{class:"t-a",to:"/entrance"},{default:n(()=>t[1]||(t[1]=[k("Вернуться ко входу")])),_:1})])]),_:1}))}};export{F 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.