0
Fork 0
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:
Katharina Irrgang 2016-08-19 08:32:45 +02:00 committed by Hannah Wolfe
parent 97e955a55e
commit 16b13c7134

View file

@ -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);
});