diff options
Diffstat (limited to 'ui/app/components')
| -rw-r--r-- | ui/app/components/greeter_panel.js | 5 | ||||
| -rw-r--r-- | ui/app/components/login.js | 3 | 
2 files changed, 5 insertions, 3 deletions
| diff --git a/ui/app/components/greeter_panel.js b/ui/app/components/greeter_panel.js index c95b183..acaf0d5 100644 --- a/ui/app/components/greeter_panel.js +++ b/ui/app/components/greeter_panel.js @@ -17,7 +17,7 @@ export default class GreeterPanel extends React.Component {    }    onLogin(account) { -    App.show('main', {initialAccount: account}) +    App.start()    }    render () { @@ -25,7 +25,8 @@ export default class GreeterPanel extends React.Component {        <Splash speed="slow" mask={false} />        <Center width="400">          <Area position="top" type="light" className="greeter"> -          <Login onLogin={this.onLogin.bind(this)} rememberAllowed={false}/> +          <Login onLogin={this.onLogin.bind(this)} +            rememberAllowed={false} autoAllowed={true} />          </Area>          <Area position="bottom" type="dark" className="greeter">            <Glyphicon glyph="user" /> diff --git a/ui/app/components/login.js b/ui/app/components/login.js index 9ff6541..0a47d58 100644 --- a/ui/app/components/login.js +++ b/ui/app/components/login.js @@ -14,6 +14,7 @@ class Login extends React.Component {    static get defaultProps() {return{      rememberAllowed: false,   // if set, show remember password checkbox +    autoAllowed: false,       // if set, allow auto setup of provider      domain: null,             // if set, only allow this domain      address: null,            // if set, only allow this username@domain      onLogin: null,            // callback @@ -391,7 +392,7 @@ class Login extends React.Component {    doLogin() {      let account = Account.findOrAdd(this.state.username) -    account.login(this.state.password).then( +    account.login(this.state.password, this.props.autoAllowed).then(        account => {          this.setState({loading: false})          if (this.props.onLogin) { | 
