]> git.nothing2do.fr Git - diary-web.git/commit
Add try-catch blocks to ensure JSON responses for login/auth
authorgaby <gaby@nothing2do.fr>
Fri, 7 Aug 2026 12:31:33 +0000 (14:31 +0200)
committergaby <gaby@nothing2do.fr>
Fri, 7 Aug 2026 12:31:33 +0000 (14:31 +0200)
commitf1a1c22f78b3212cbea779fb33d3b1b4c5089b80
tree82a8c67a7cadb16cc82bfaf97aeb313d4fe6362a
parentbae8b4d2065a915a59e0fa6b2b780f8f1354bdaa
Add try-catch blocks to ensure JSON responses for login/auth

- Wrap login and authentication handlers in try-catch blocks
- Always return valid JSON even on errors
- Fix potential PHP warnings breaking JSON responses

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
public/index.php