mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 20:42:59 +00:00
Add files via upload
This commit is contained in:
@@ -464,11 +464,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Check if user is authenticated
|
// Check if user is authenticated
|
||||||
const token = localStorage.getItem('token');
|
(function() {
|
||||||
if (!token) {
|
const token = localStorage.getItem('token');
|
||||||
window.location.href = '/login.html';
|
if (!token) {
|
||||||
return;
|
window.location.href = '/login.html';
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
// Show notification to user
|
// Show notification to user
|
||||||
function showNotification(message, type = 'info') {
|
function showNotification(message, type = 'info') {
|
||||||
|
|||||||
Reference in New Issue
Block a user