Added improved login and logout route for the frontend. The frontend page now doesn't have to reload.

This commit is contained in:
2025-08-19 14:21:30 +02:00
parent 06f84cddc4
commit 8fbcd069b5
7 changed files with 68 additions and 56 deletions

View File

@@ -15,7 +15,6 @@ const LoginForm: React.FC<LoginFormProps> = ({ onLogin }) => {
e.preventDefault();
const result = await loginUser(username, password);
if (result.success) {
myToast("Login successful!", "success");
onLogin();
} else {
myToast("Login failed. Please check your credentials.", "error");