PageSourceSearch

https://rj-counseling.lovable.app/assets/forgot-password-DmOWdniH.js

js rj-counseling.lovable.app collected 2026-10-03 03:43:21 UTC 2,645 bytes, 1 lines download raw bytes

1import{e as u,r as a,j as e,L as o,s as p}from"./index-JjAY8Vrb.js";function f(){const{email:n}=u.useSearch(),[s,i]=a.useState(n??""),[r,l]=a.useState(!1),[d,c]=a.useState(!1);async function m(t){t.preventDefault(),l(!0);const x=typeof window<"u"?window.location.origin:"";await p.auth.resetPasswordForEmail(s.trim().toLowerCase(),{redirectTo:`${x}/admin/reset-password`}),l(!1),c(!0)}return e.jsx("main",{className:"min-h-screen bg-background flex items-center px-5",style:{wordBreak:"keep-all"},children:e.jsxs("div",{className:"w-full max-w-sm mx-auto space-y-5",children:[e.jsx("div",{className:"text-center",children:e.jsx("h1",{className:"text-xl font-bold text-primary",children:"비밀번호 재설정"})}),d?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"rounded-xl p-5 space-y-2",style:{backgroundColor:"#F0F7FF"},children:[e.jsx("p",{className:"text-base font-bold text-primary",children:"메일을 보냈습니다."}),e.jsxs("p",{className:"text-sm text-foreground",children:[e.jsx("span",{className:"font-semibold",children:s.trim().toLowerCase()})," 주소로 비밀번호 재설정 링크를 보냈습니다."]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"메일이 오지 않으면 스팸함을 확인해주세요."}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"링크는 1시간 동안 유효합니다."})]}),e.jsx(o,{to:"/admin/login",className:"flex w-full items-center justify-center rounded-xl font-semibold text-white",style:{backgroundColor:"#1A2D68",height:52},children:"로그인 화면으로"})]}):e.jsxs("form",{onSubmit:m,className:"space-y-5",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:["가입하신 이메일 주소를 입력해주세요.",e.jsx("br",{}),"비밀번호를 다시 설정할 수 있는 링크를 보내드립니다."]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-sm font-medium text-foreground",children:"이메일"}),e.jsx("input",{type:"email",required:!0,value:s,onChange:t=>i(t.target.value),placeholder:"이메일을 입력하세요",className:"w-full h-12 px-4 rounded-xl border border-border bg-card outline-none focus:border-primary"})]}),e.jsx("button",{type:"submit",disabled:r,className:"w-full rounded-xl font-semibold text-white disabled:opacity-60",style:{backgroundColor:"#1A2D68",height:52},children:r?"보내는 중...":"재설정 링크 받기"}),e.jsx("p",{className:"text-center",children:e.jsx(o,{to:"/admin/login",className:"text-sm underline",style:{color:"#2F78BC"},children:"로그인 화면으로 돌아가기"})})]})]})})}export{f as component};

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.