fix(2FA): add missing translations

This commit is contained in:
Rudy B. committed 2026-04-25 11:38:54 +02:00
1 parent 22df31e32e
commit c127767c83
4 files changed
+16 -1

No files matched your search

+4 -1
View File
@@ -24,7 +24,10 @@ export async function POST(request: Request) {
// Verify if 2FA is waiting for setup
if (!twoFactor || twoFactor.isEnabled) {
return badRequest({ message: 'No pending 2FA setup found' });
return badRequest({
code: 'two-factor-error-no-pending-setup',
message: 'No pending 2FA setup found',
});
}
// Verify rate limit