Add handlers for non-successful responses from the panel
This commit is contained in:
parent
ebb7b6de9b
commit
4209be021e
5 changed files with 21 additions and 2 deletions
|
@ -49,6 +49,10 @@
|
|||
authentication_code: this.$data.code,
|
||||
})
|
||||
.then(function (response) {
|
||||
if (!(response.data instanceof Object)) {
|
||||
throw new Error('An error was encountered while processing this login.');
|
||||
}
|
||||
|
||||
window.location = response.data.intended;
|
||||
})
|
||||
.catch(function (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue