[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)
|
||||
{
|
||||
// Call custom event with courses info
|
||||
this.$emit('login:token', response.token);
|
||||
this.$emit('login:token', response.data);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Show error message
|
||||
this.error = response.token;
|
||||
this.error = response.data;
|
||||
|
||||
// Allow the user to retry
|
||||
this.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user