fix(2FA): add missing translations
This commit is contained in:
1 parent
22df31e32e
commit
c127767c83
4 files changed
+16
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user