From a72348771fb4f9b31df4520bde92a10a6dd0a846 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 4 May 2023 11:29:54 +0200 Subject: [PATCH] change(ui) - enforce sso --- frontend/app/components/Login/Login.js | 212 ++++++++++++++----------- 1 file changed, 121 insertions(+), 91 deletions(-) diff --git a/frontend/app/components/Login/Login.js b/frontend/app/components/Login/Login.js index a63498730..946b5ca36 100644 --- a/frontend/app/components/Login/Login.js +++ b/frontend/app/components/Login/Login.js @@ -52,7 +52,7 @@ class Login extends React.Component { componentDidMount() { const { params } = this.props; - this.props.fetchTenants() + this.props.fetchTenants(); const jwt = params.get('jwt'); if (jwt) { this.props.setJwt(jwt); @@ -86,105 +86,135 @@ class Login extends React.Component {
- +
-
-

Login to your account

- - {CAPTCHA_ENABLED && ( - this.handleSubmit(token)} - /> - )} -
- - - + Login to your account + +
+ + + {CAPTCHA_ENABLED && ( + this.handleSubmit(token)} /> - - - - - -
- - {errors && errors.length ? ( -
- {errors.map((error) => ( -
- - - {error} -
-
-
- ))} -
- ) : null} - -
- + )} +
+ + + + + + + + +
+ + {errors && errors.length ? ( +
+ {errors.map((error) => ( +
+ + + {error} +
+
+
+ ))} +
+ ) : null} -
- Having trouble logging in? {'Reset password'} -
-
- - -
- {authDetails.sso ? ( - - - - ) : ( - {authDetails.edition === 'ee' ? SSO has not been configured.
Please reach out to your admin.
: ENTERPRISE_REQUEIRED}
} - placement="top" - > +
- - )} -
- +
+ Having trouble logging in?{' '} + + {'Reset password'} + +
+
+ + +
+ {authDetails.sso ? ( + + + + ) : ( + + {authDetails.edition === 'ee' ? ( + + SSO has not been configured.
Please reach out to your admin. +
+ ) : ( + ENTERPRISE_REQUEIRED + )} +
+ } + placement="top" + > + + + )} +
+
+
+ + + +