diff --git a/imports/plugins/core/accounts/client/components/login.js b/imports/plugins/core/accounts/client/components/login.js
index 1c1ea208cce..c86ca93f923 100644
--- a/imports/plugins/core/accounts/client/components/login.js
+++ b/imports/plugins/core/accounts/client/components/login.js
@@ -54,9 +54,10 @@ class Login extends Component {
}
render() {
+ const currentRoute = Router.current().route;
+ const isOauthFlow = currentRoute.options && currentRoute.options.meta && currentRoute.options.meta.oauthLoginFlow;
+ const idpFormClass = isOauthFlow ? "idp-form" : "";
if (this.state.currentView === "loginFormSignInView" || this.state.currentView === "loginFormSignUpView") {
- const currentRoute = Router.current().route;
- const isOauthFlow = currentRoute.options && currentRoute.options.meta && currentRoute.options.meta.oauthLoginFlow;
if (isOauthFlow) {
return (