mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
fix: error handling when login via test env (#7214)
no issue - When you choose a non existent user (email+pwd) for login via the test env, no error was shown.
This commit is contained in:
parent
97e955a55e
commit
16b13c7134
1 changed files with 4 additions and 0 deletions
|
@ -550,6 +550,10 @@ login = function login(request) {
|
|||
client_id: 'ghost-admin',
|
||||
client_secret: 'not_available'
|
||||
}).then(function then(res) {
|
||||
if (res.statusCode !== 200) {
|
||||
return reject(res.body);
|
||||
}
|
||||
|
||||
resolve(res.body.access_token);
|
||||
}, reject);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue