Add club settings link for admin users and remove test PIN references in MatchReportApiDialog
This commit introduces a new link to the club settings in the App.vue component, visible only to admin users. Additionally, it removes references to a test PIN ('1234') in the MatchReportApiDialog.vue, enhancing security and streamlining the user experience by eliminating unnecessary hints and validation logic.
This commit is contained in:
@@ -79,6 +79,10 @@
|
||||
<span class="nav-icon">📊</span>
|
||||
Trainings-Statistik
|
||||
</router-link>
|
||||
<router-link v-if="isAdmin" to="/club-settings" class="nav-link" title="Vereinseinstellungen">
|
||||
<span class="nav-icon">⚙️</span>
|
||||
Vereinseinstellungen
|
||||
</router-link>
|
||||
</div>
|
||||
|
||||
<div class="nav-section">
|
||||
|
||||
@@ -640,15 +640,12 @@
|
||||
v-model="pinModalGuestPin"
|
||||
type="password"
|
||||
class="pin-input"
|
||||
placeholder="PIN eingeben (Test: 1234)"
|
||||
placeholder="PIN eingeben"
|
||||
@keyup.enter="submitPinModal"
|
||||
/>
|
||||
<small v-if="originalGuestPin && meetingDetails && meetingDetails.guestPin" class="pin-hint">
|
||||
💡 Die ursprünglich verwendete Gast-PIN ist: {{ originalGuestPin }}
|
||||
</small>
|
||||
<small v-else class="pin-hint">
|
||||
💡 Für Tests können Sie "1234" verwenden
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1414,12 +1411,6 @@ Wir wünschen den Spielen einen schönen, spannenden und fairen Verlauf und begr
|
||||
return;
|
||||
}
|
||||
|
||||
// Test-Validierung: Gast-PIN "1234" akzeptieren (nur wenn Gast angetreten ist)
|
||||
if (!isGuestNotAppeared && this.finalGuestPin !== '1234') {
|
||||
alert('Für den Test wird nur die Gast-PIN "1234" akzeptiert.');
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('✅ PIN-Validierung erfolgreich');
|
||||
|
||||
// Erstelle eine Kopie des ursprünglichen Match-Objekts
|
||||
@@ -2950,12 +2941,6 @@ Wir wünschen den Spielen einen schönen, spannenden und fairen Verlauf und begr
|
||||
async validatePin(team, pin) {
|
||||
if (!pin || !this.meetingDetails) return false;
|
||||
|
||||
// Vorübergehend: Gast-PIN '1234' akzeptieren
|
||||
if (team === 'guest' && pin === '1234') {
|
||||
this.showPinValidation(team, true, 'Test-PIN');
|
||||
return true;
|
||||
}
|
||||
|
||||
const expectedHash = team === 'home' ? this.meetingDetails.homePin : this.meetingDetails.guestPin;
|
||||
|
||||
|
||||
@@ -3361,7 +3346,7 @@ Wir wünschen den Spielen einen schönen, spannenden und fairen Verlauf und begr
|
||||
|
||||
// Prüfen gegen ursprünglich verwendete PINs
|
||||
const homePinValid = this.pinModalHomePin === this.originalHomePin;
|
||||
const guestPinValid = this.pinModalGuestPin === this.originalGuestPin || this.pinModalGuestPin === '1234';
|
||||
const guestPinValid = this.pinModalGuestPin === this.originalGuestPin;
|
||||
|
||||
if (homePinValid && guestPinValid) {
|
||||
console.log('✅ PIN erfolgreich - entsperre Aufstellung und wechsle Tab');
|
||||
|
||||
Reference in New Issue
Block a user