diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-27 13:45:25 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-27 13:45:25 +0300 |
| commit | ab330c64eeed9edfc2a6ef6a6f5cd38587ba0996 (patch) | |
| tree | 9ca46c6552e427a9461387dc63362be0f9301acb /src/components/header/authdialog/LoginForm.tsx | |
| parent | c7d2526afec5ffb8918c20d7c1c58852f1c647bd (diff) | |
add username change and logout
Diffstat (limited to 'src/components/header/authdialog/LoginForm.tsx')
| -rw-r--r-- | src/components/header/authdialog/LoginForm.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/header/authdialog/LoginForm.tsx b/src/components/header/authdialog/LoginForm.tsx index 1dc2df4..b4d90f1 100644 --- a/src/components/header/authdialog/LoginForm.tsx +++ b/src/components/header/authdialog/LoginForm.tsx @@ -48,6 +48,7 @@ export default function LoginForm({ redirectTo }: { redirectTo?: string }) { if (!res.ok) { setErrors({ general: 'Неверный логин или пароль' }); + return; } else { const meRes = await fetch(`${API_URL}/api/me`, { credentials: 'include', |
