Fix token check for autologin
This commit is contained in:
parent
dac84477dc
commit
a11aae98e9
1 changed files with 9 additions and 3 deletions
|
@ -170,9 +170,15 @@ export default class Login extends React.Component {
|
||||||
toValue: 0,
|
toValue: 0,
|
||||||
tension: 30,
|
tension: 30,
|
||||||
}).start();
|
}).start();
|
||||||
if (token.get()) {
|
|
||||||
this.proceed();
|
token.get().then(function (CIToken) {
|
||||||
|
if (!CIToken) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
checkToken(CIToken).then(function (isValid) {
|
||||||
|
this.proceed();
|
||||||
|
}.bind(this));
|
||||||
|
}.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Reference in a new issue