mirror of
https://github.com/gosticks/web.git
synced 2026-12-03 17:51:39 +00:00
Redirect to home when logged in
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
+1
-2
@@ -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 }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user