mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-08 19:37:28 -05:00
Invalid password error is wrapped in errors tag
This commit is contained in:
@@ -62,9 +62,11 @@ router.post('/access_token/generate', deviceCertificateMiddleware, consoleStatus
|
||||
|
||||
if (!pnid || !await bcrypt.compare(password, pnid.password)) {
|
||||
response.status(400).send(xmlbuilder.create({
|
||||
error: {
|
||||
code: '0106',
|
||||
message: 'Invalid account ID or password'
|
||||
errors: {
|
||||
error: {
|
||||
code: '0106',
|
||||
message: 'Invalid account ID or password'
|
||||
}
|
||||
}
|
||||
}).end({ pretty: true }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user