PageSourceSearch

https://teemdrop.com/_nuxt/hnfl79cE.js

js teemdrop.com collected 2026-10-03 21:37:38 UTC 1,106 bytes, 1 lines download raw bytes

1import{m as s}from"./HTCPDsy5.js";import{emailRegex as d}from"./1U4e5H4I.js";import{u as a}from"./BEdepSaR.js";const w=(e,t)=>{const{$toast:r}=a();return{handleForgotPassword:async()=>{if(!e.value.email.trim()){r.error("Email can not be empty");return}if(!d.test(e.value.email)){r.error("Incorrectly formed email");return}if(!e.value.password.trim()){r.error("New password can not be empty");return}if(!e.value.confirmPassword.trim()){r.error("Confirm new password can not be empty");return}if(e.value.password!==e.value.confirmPassword){r.error("The new password and confirm password do not match");return}if(!e.value.verifyCode){r.error("Please enter the correct verify code");return}const o=await $fetch("/gateway/user/user/forgotPassword",{method:"POST",body:{email:e.value.email,password:s(e.value.password),confirmPassword:s(e.value.confirmPassword),code:e.value.verifyCode}}).catch(n=>{console.log(n)});o?.code===0?(r.success("Reset password success"),e.value.password="",e.value.confirmPassword="",e.value.verifyCode="",t?.()):r.error(o?.message||"Server error")}}};export{w as useForgotPassword};

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.