Implement backend for 2FA

This commit is contained in:
KernelDeimos
2024-05-06 00:02:46 -04:00
parent 038373cbbc
commit d7c5c37cf8
10 changed files with 227 additions and 23 deletions
+4
View File
@@ -331,6 +331,10 @@ module.exports = class APIError {
status: 403,
message: 'Attempted to create an access token with no permissions.',
},
'invalid_action': {
status: 400,
message: ({ action }) => `Invalid action: ${quot(action)}.`,
},
// Object Mapping
'field_not_allowed_for_create': {