Commit f1f708f

mo khan <mo@mokhan.ca>
2016-12-22 16:00:58
spread json result.
1 parent 6d77d35
Changed files (1)
app
app/commands/login-command.js
@@ -21,8 +21,7 @@ export default class LoginCommand {
     this.storage.save('authentication_token', json.authentication_token);
     this.eventAggregator.publish({
       event: 'LOGGED_IN',
-      username: json.username,
-      authentication_token: json.authentication_token,
+      ...json
     });
   }
 }