HifiPlanet-Website/hifi/assets/ResetPassword-exnI6vKh.js
Max Olchov 20e91e570b
KI-Modellbilder fuer viele Modelle auf einmal
Modelle > 'KI-Bilder': Modelle anhaken (alle ohne Bild / alle), Ergebnis optional
automatisch uebernehmen. Vorlage laden: Haken 'KI-Bilder fuer die neuen Modelle'.
Warteschlange am Modell (ai_state waiting/running/done/failed), POST /ai-images/process
schickt hoechstens 4 gleichzeitig zu Higgsfield und holt fertige Bilder ab, solange die
Modell-Seite offen ist.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ex4YsMRQ4GF2dkGWuX6Yio
2026-10-23 16:46:24 +00:00

1 line
2.8 KiB
JavaScript

import{p as g,r as s,j as e,l as f,o as j,L as i,c as k}from"./index-BCJIb4ru.js";const m="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900";function v(){const[u]=g(),[a,c]=s.useState(""),[r,x]=s.useState(""),[l,n]=s.useState(""),[h,b]=s.useState(!1),[o,d]=s.useState(!1),p=async t=>{if(t.preventDefault(),n(""),a!==r){n("Die Passwörter stimmen nicht überein");return}d(!0);try{await k.post("/auth/reset-password",{token:u.get("token")||"",password:a,password_confirmation:r}),b(!0)}catch(w){n(w.message)}finally{d(!1)}};return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 dark:bg-neutral-950",children:[e.jsx("img",{src:f,alt:"HifiPlanet",className:"h-16 w-auto dark:hidden sm:h-20"}),e.jsx("img",{src:j,alt:"HifiPlanet",className:"hidden h-16 w-auto dark:block sm:h-20"}),e.jsx("div",{className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:h?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Passwort geändert"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Du kannst dich jetzt mit dem neuen Passwort anmelden."}),e.jsx(i,{to:"/admin/login",className:"block w-full rounded-md bg-brand-500 px-4 py-2.5 text-center text-sm font-semibold text-white hover:bg-brand-600",children:"Zum Login"})]}):e.jsxs("form",{onSubmit:p,children:[e.jsx("h1",{className:"mb-6 text-xl font-bold text-neutral-900 dark:text-white",children:"Neues Passwort festlegen"}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Neues Passwort"}),e.jsx("input",{type:"password",value:a,onChange:t=>c(t.target.value),required:!0,minLength:8,autoFocus:!0,autoComplete:"new-password",className:m}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Mindestens 8 Zeichen."})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Neues Passwort wiederholen"}),e.jsx("input",{type:"password",value:r,onChange:t=>x(t.target.value),required:!0,minLength:8,autoComplete:"new-password",className:m})]}),l&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:l}),e.jsx("button",{type:"submit",disabled:o,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:o?"Speichern…":"Passwort speichern"}),e.jsx(i,{to:"/admin/login",className:"mt-3 block text-center text-sm text-neutral-500 hover:underline dark:text-neutral-400",children:"Zurück zum Login"})]})})]})}export{v as default};