Redirect to home when logged in

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-04-30 14:58:16 -04:00
parent d49bc3343c
commit cc22d3e16c
+1 -2
View File
@@ -36,9 +36,8 @@ export default class Login extends Component {
.then(() => {
// Assume it's ok since there was no error
// TODO: verify response
// TODO: transition to logged in mode
api.loggedIn = true;
console.log("Logged In");
this.props.history.push('/');
})
.catch(() => this.setState({ error: true }));