fix issue with authentication redirect loop
This commit is contained in:
1 parent
3157b7d3ef
commit
0da88878d5
4 files changed
+28
-20
No files matched your search
@@ -44,9 +44,9 @@ const styles = theme => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class LoginPage extends Component {
|
||||
|
||||
class SignInPage extends Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
@@ -82,7 +82,6 @@ class LoginPage extends Component {
|
||||
}
|
||||
}).then(json => {
|
||||
authenticationContext.signIn(json.access_token);
|
||||
this.setState({ processing: false });
|
||||
})
|
||||
.catch(error => {
|
||||
this.props.raiseNotification(error.message);
|
||||
@@ -132,4 +131,6 @@ class LoginPage extends Component {
|
||||
|
||||
}
|
||||
|
||||
export default withAuthenticationContext(withNotifier(withStyles(styles)(LoginPage)));
|
||||
export default withAuthenticationContext(
|
||||
withNotifier(withStyles(styles)(SignInPage))
|
||||
);
|
||||
Reference in new issue
Block a user