invoke queryStringAuthenticate before requireAuthentication

This commit is contained in:
Michael Bradley, Jr 2018-10-19 16:55:54 -05:00
parent 2432489943
commit 1b20bbbeb8
1 changed files with 2 additions and 4 deletions

View File

@ -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) {