mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
Fix recover password redirection bug
This commit is contained in:
parent
c3d1637615
commit
9a40c63cf4
@ -75,7 +75,7 @@ class MainRecoverPasswordPage extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onPasswordRecovered(response) {
|
onPasswordRecovered(response) {
|
||||||
setTimeout(() => {history.push(response.data.staff ? '/admin' : '/')}, 2000);
|
setTimeout(() => {history.push((response.data.staff*1) ? '/admin' : '/')}, 2000);
|
||||||
this.setState({
|
this.setState({
|
||||||
recoverStatus: 'valid',
|
recoverStatus: 'valid',
|
||||||
loading: false
|
loading: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user