Merge pull request #107 from christianlouis/copilot/check-mailbox-credentials

Fix: Test Connection always reports success regardless of auth result
This commit is contained in:
Christian Krakau-Louis
2026-03-28 20:14:42 +01:00
committed by GitHub
5 changed files with 83 additions and 17 deletions
+7
View File
@@ -338,6 +338,13 @@ export const mailAccountsApi = {
return response.data;
},
async testExisting(accountId: number): Promise<{ success: boolean; message: string }> {
const response = await api.post<{ success: boolean; message: string }>(
`/mail-accounts/${accountId}/test`
);
return response.data;
},
async autoDetect(
emailAddress: string
): Promise<{ success: boolean; suggestions: AutoDetectSuggestion[] }> {