mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
Add files via upload
This commit is contained in:
+2
-2
@@ -118,8 +118,8 @@
|
|||||||
// Save the token to localStorage
|
// Save the token to localStorage
|
||||||
localStorage.setItem('token', data.token);
|
localStorage.setItem('token', data.token);
|
||||||
|
|
||||||
// Redirect to admin dashboard or home page
|
// Redirect to admin dashboard
|
||||||
window.location.href = '/';
|
window.location.href = '/admin/dashboard';
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Login error:', error);
|
console.error('Login error:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user