mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
feat: internationalize API error messages
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = function (middleware) {
|
||||
return true;
|
||||
}
|
||||
|
||||
throw new Error('[[errors:api.master-token-no-uid]]');
|
||||
throw new Error('[[error:api.master-token-no-uid]]');
|
||||
} else {
|
||||
winston.warn('[api/authenticate] Unable to find user after verifying token');
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user