[U] Update keywords (from "token" to "data")

This commit is contained in:
Hykilpikonna
2019-09-07 11:48:28 -04:00
parent 76cf8c4c53
commit bd8d7fd113
+2 -2
View File
@@ -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;