mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 01:18:52 +00:00
strip token from URL if auth fails
This commit is contained in:
parent
d02d2f1522
commit
8d40c04107
@ -70,6 +70,12 @@ class AppContainer extends Component {
|
|||||||
this.props.authenticate(this.props.credentials.host, this.props.credentials.token);
|
this.props.authenticate(this.props.credentials.host, this.props.credentials.token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.getQueryToken() &&
|
||||||
|
!this.props.credentials.authenticated &&
|
||||||
|
!this.props.credentials.authenticating) {
|
||||||
|
this.props.history.replace(this.stripQueryToken(this.props.location));
|
||||||
|
}
|
||||||
|
|
||||||
if (this.getQueryToken() && this.props.credentials.authenticated) {
|
if (this.getQueryToken() && this.props.credentials.authenticated) {
|
||||||
this.props.history.replace(this.stripQueryToken(this.props.location));
|
this.props.history.replace(this.stripQueryToken(this.props.location));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user