Skip to content

Commit

Permalink
feat: add oauth call to AuthContainer
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Ross Hadden <rosshadden@gmail.com>
  • Loading branch information
kieckhafer authored and rosshadden committed Dec 20, 2019
1 parent ac8761c commit f9009e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imports/plugins/core/accounts/client/containers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class AuthContainer extends Component {
}
});
} else {
Router.go(this.props.currentRoute.route.path);
Meteor.call("oauth/login", { challenge }, (err, redirect_to) => {
window.location.href = redirect_to;
});
}
});
} else if (this.props.currentView === "loginFormSignUpView") {
Expand Down

0 comments on commit f9009e9

Please sign in to comment.