示例#1
0
	reconcileState(state, props, context) {
		Object.assign(state, props);
		state.token = state.location.query && state.location.query.token; // TODO: error handling (missing token)
		state.pendingAuthAction = UserStore.pendingAuthActions.get("reset");
		state.authResponse = UserStore.authResponses.get("reset");
	}
示例#2
0
	reconcileState(state, props) {
		Object.assign(state, props);
		state.pendingAuthAction = UserStore.pendingAuthActions.get("logout");
		state.authResponse = UserStore.authResponses.get("logout");
	}