Refactor CityProfile and PlayerProfile components for improved data fetching and error handling; add NPC management modals for banner, gallery, and logo with enhanced user experience and error feedback.

This commit is contained in:
Lars Behrends
2025-12-30 13:56:00 +01:00
parent 5eb2eca110
commit c6ad8a92ec
14 changed files with 2539 additions and 102 deletions

View File

@@ -30,8 +30,9 @@ class AuthService {
}
// Redirects to Discord OAuth
async login(): Promise<void> {
window.location.href = `${API_URL}/auth/discord`;
async login(rememberMe: boolean = false): Promise<void> {
const rememberParam = rememberMe ? '?remember_me=true' : '';
window.location.href = `${API_URL}/auth/discord${rememberParam}`;
}
logout() {