diff --git a/src/api/teamsbotApi.ts b/src/api/teamsbotApi.ts index 4178ae7..c99a38f 100644 --- a/src/api/teamsbotApi.ts +++ b/src/api/teamsbotApi.ts @@ -140,6 +140,16 @@ export interface AuthTestResults { variants: AuthTestResult[]; recommendation: string; credentialsReceived?: { hasEmail: boolean; hasPassword: boolean }; + credentialDebug?: { + mandateId?: string; + botFound?: boolean; + botEmail?: string; + botMandateId?: string; + searchStrategy?: string; + allBotsCount?: number; + passwordDecrypted?: boolean; + passwordError?: string; + }; } // SSE Event Types diff --git a/src/pages/views/teamsbot/TeamsbotSettingsView.tsx b/src/pages/views/teamsbot/TeamsbotSettingsView.tsx index 1ed66d3..8815fc9 100644 --- a/src/pages/views/teamsbot/TeamsbotSettingsView.tsx +++ b/src/pages/views/teamsbot/TeamsbotSettingsView.tsx @@ -343,12 +343,35 @@ export const TeamsbotSettingsView: React.FC = () => { - {testResults.credentialsReceived && ( -
- Credentials:{' '} - Email: {testResults.credentialsReceived.hasEmail ? : ✗ FEHLT} - {' | '} - Passwort: {testResults.credentialsReceived.hasPassword ? : ✗ FEHLT} + {(testResults.credentialsReceived || testResults.credentialDebug) && ( +
+
+ Credential-Debug: +
+ {testResults.credentialsReceived && ( +
+ Bot empfangen: Email={testResults.credentialsReceived.hasEmail ? 'ja' : 'NEIN'} | Passwort={testResults.credentialsReceived.hasPassword ? 'ja' : 'NEIN'} +
+ )} + {testResults.credentialDebug && ( + <> +
+ Suche: mandateId={testResults.credentialDebug.mandateId} | Strategie={testResults.credentialDebug.searchStrategy} +
+
+ Bot gefunden: {testResults.credentialDebug.botFound ? 'ja' : 'NEIN'} + {testResults.credentialDebug.botEmail && ` | ${testResults.credentialDebug.botEmail}`} + {testResults.credentialDebug.botMandateId && ` | bot-mandate=${testResults.credentialDebug.botMandateId}`} + {testResults.credentialDebug.allBotsCount !== undefined && ` | total=${testResults.credentialDebug.allBotsCount}`} +
+ {testResults.credentialDebug.passwordDecrypted !== undefined && ( +
+ Passwort entschluesselt: {testResults.credentialDebug.passwordDecrypted ? 'ja' : 'NEIN'} + {testResults.credentialDebug.passwordError && ` | Fehler: ${testResults.credentialDebug.passwordError}`} +
+ )} + + )}
)}