stuff not ready to be pushed to master

This commit is contained in:
Edin Dazdarevic
2015-03-08 22:29:37 +01:00
parent fce49c9f5b
commit cb37ff0391
9 changed files with 234 additions and 49 deletions

View File

@@ -12,10 +12,14 @@ var Login = React.createClass({
mixins: [RibicaValidationMixin],
componentDidMount:function() {
UserStore.addChangeListener(this.onUserStoreChange);
UserActions.clearLogin();
},
componentWillUnmount: function() {
UserStore.removeChangeListener(this.onUserStoreChange);
},
componentWillReceiveProps: function() {
UserActions.clearLogin();
},
onUserStoreChange: function() {
if(this.isMounted()) {
var loginState = UserStore.getLoginState();