Commit 42c17b3
Changed files (1)
app
commands
app/commands/login-command.js
@@ -12,11 +12,10 @@ export default class LoginCommand {
}
onResponse(json) {
- let logged_in_event = {
+ this.eventAggregator.publish({
event: 'LOGGED_IN',
username: json.username,
authentication_token: json.authentication_token,
- };
- this.eventAggregator.publish(logged_in_event);
+ });
}
}