Fix token check for autologin

This commit is contained in:
Jake Howard 2016-03-12 15:55:48 +00:00
parent dac84477dc
commit a11aae98e9

View file

@ -170,9 +170,15 @@ export default class Login extends React.Component {
toValue: 0,
tension: 30,
}).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() {