[U] Update keywords (from "token" to "data")
This commit is contained in:
@@ -38,12 +38,12 @@ export default class Login extends Vue
|
|||||||
if (response.success)
|
if (response.success)
|
||||||
{
|
{
|
||||||
// Call custom event with courses info
|
// Call custom event with courses info
|
||||||
this.$emit('login:token', response.token);
|
this.$emit('login:token', response.data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Show error message
|
// Show error message
|
||||||
this.error = response.token;
|
this.error = response.data;
|
||||||
|
|
||||||
// Allow the user to retry
|
// Allow the user to retry
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user