mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 09:15:02 +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) {
|
||||
setTimeout(() => {history.push(response.data.staff ? '/admin' : '/')}, 2000);
|
||||
setTimeout(() => {history.push((response.data.staff*1) ? '/admin' : '/')}, 2000);
|
||||
this.setState({
|
||||
recoverStatus: 'valid',
|
||||
loading: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user