Giter Club home page Giter Club logo

meteor-accounts-react-material-ui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

meteor-accounts-react-material-ui's Issues

Meteor user logs out automatically after logging in...

Firstly, thanks very much for contributing this component/package -- it seems to be exactly what I'm looking for; although, I'm running into a couple of issues utilizing it that I'm hoping you can help me with.

I'm using Meteor with React and React-Router. I've setup a route for the Login like so:

<Router history={ReactRouter.lib.BrowserHistory.history}>
        <Route name="home" path="/login" component={Accounts.ui.LoginFormSet}/>
</Router>

Using Material-UI, I have constructed a Toolbar within which I have included the Login and Logout buttons for this Meteor-Accounts-React-Material-UI package:

injectTapEventPlugin();
TopBar = React.createClass({  
  mixins: [ReactMeteorData],
  getInitialState: function() {
      return {};
  },
  getMeteorData() {
    return {
      currentUser: Meteor.user()
    };
  },
  childContextTypes: {
    muiTheme: React.PropTypes.object
  },
  getChildContext: function() {
    return {
      muiTheme: ThemeManager.getMuiTheme(Styles.LightRawTheme)
    };
  },
  render: function () {
    return (
      <Toolbar>
          {this.data.currentUser ? <RaisedButton label="Log Out" onClick={Meteor.logout()} /> : <RaisedButton label="Log In" linkButton={true} href="/login" />}
      </Toolbar>
    );
  }
});

When I click the Log In button, I'm routed to the Log In screen as expected.

I'm experiencing two issues:

  1. When I successfully login, after about 3 seconds, I'm automatically logged out. In my javascript console, I can type in Meteor.userId() immediately after logging in and I get back a value; however, after a few seconds, the login screen is displayed again and when I type in Meteor.userId() into the console I get back null.
  2. When I successfully login, I'm presented with the Change Password screen. How do I specify to return back to the route I was on last before the Log In button was pressed? Your example showed passing a value to the redirect property of the Accounts.ui.LoginFormSet component in the context of FlowRouter; however, I'm not sure what I'm supposed to supply to this property in the context of React-Router -- is this component compatible with React-Router?

It would actually be great to see a sample application like the Meteor-React To Do list that incorporates this meteor-accounts-react-material-ui component.

Thank you in advance!

  • Sadiq

is it possible to update to latest react (v15.1) and material-ui (v0.15) from npm?

Hi,
I really like your package, but unfortunately its currently using old versions of react (loaded in meteor) and material-ui (v0.13.x).
Would it be possible to upgrade to the latest React (v15.1.0) loaded from npm, and the current material-ui (v.15.0) ?
I'm a newbie at meteor and javascript, but if I can help, please let me know.

It's not work

I really like your this component, but I still inexperienced, but depending on your method I use this component, it does not appear on the page.I hope you can publish a detailed usage

missing zh-cn translation

in Package.js

DEFAULT_LANGUAGES = ['ar', 'zh_cn', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es',
'es_ES', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'kh', 'ko', 'pl', 'pt', 'pt_PT', 'ro',
'ru', 'sk', 'sl', 'sv', 'tr', 'uk', 'vi', 'no_NB', 'nl', 'zh_tw', 'zh_hk'];

missing 'zh-cn'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.