Fix admin/user login issues
This commit is contained in:
@@ -75,7 +75,9 @@ export class Login extends Component {
|
||||
this.setState({ waitModal: false })
|
||||
if (this.props.history) {
|
||||
let url =
|
||||
new URLSearchParams(window.location.search).get("redirect") || "/"
|
||||
new URLSearchParams(this.props.history.location.search).get(
|
||||
"redirect"
|
||||
) || "/"
|
||||
|
||||
try {
|
||||
this.props.history.replace(url)
|
||||
@@ -224,7 +226,7 @@ export class Login extends Component {
|
||||
</Row>
|
||||
</Column.Item>
|
||||
<Column.Item grow>
|
||||
<WaitModal active={waitModal} message="Logging in..." />
|
||||
<WaitModal open={waitModal} message="Logging in..." />
|
||||
<MessageModal
|
||||
error
|
||||
open={!!messageModal}
|
||||
|
||||
Reference in New Issue
Block a user