mirror of https://github.com/embarklabs/embark.git
invoke queryStringAuthenticate before requireAuthentication
This commit is contained in:
parent
2432489943
commit
1b20bbbeb8
|
@ -46,10 +46,8 @@ class AppContainer extends Component {
|
|||
}
|
||||
|
||||
componentDidUpdate(){
|
||||
if (this.requireAuthentication()) {
|
||||
if (!this.queryStringAuthenticate()) {
|
||||
this.props.authenticate(this.props.credentials.host, this.props.credentials.token);
|
||||
}
|
||||
if (!this.queryStringAuthenticate() && this.requireAuthentication()) {
|
||||
this.props.authenticate(this.props.credentials.host, this.props.credentials.token);
|
||||
}
|
||||
|
||||
if (this.props.credentials.authenticated && !this.props.initialized) {
|
||||
|
|
Loading…
Reference in New Issue