stuff not ready to be pushed to master
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user