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 ( +
+ +
); } } diff --git a/imports/plugins/core/hydra-oauth/client/containers/auth.js b/imports/plugins/core/hydra-oauth/client/containers/auth.js index c52f9405d5a..b73435c24fc 100644 --- a/imports/plugins/core/hydra-oauth/client/containers/auth.js +++ b/imports/plugins/core/hydra-oauth/client/containers/auth.js @@ -139,7 +139,7 @@ class OAuthFormContainer extends Component { render() { return ( -
+
{this.renderAuthView()}
);