From: Kevin Silva Date: Mon, 5 Feb 2024 14:05:50 +0000 (+0100) Subject: SONAR-21566 - Change password after first login adopts new MIUI X-Git-Tag: 10.5.0.89998~285 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=846d00fd492a4720ea0a98ec096fd12160e99270;p=sonarqube.git SONAR-21566 - Change password after first login adopts new MIUI --- diff --git a/server/sonar-web/src/main/js/app/components/ResetPassword.tsx b/server/sonar-web/src/main/js/app/components/ResetPassword.tsx index 40593835182..2feeaad91a9 100644 --- a/server/sonar-web/src/main/js/app/components/ResetPassword.tsx +++ b/server/sonar-web/src/main/js/app/components/ResetPassword.tsx @@ -17,6 +17,13 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { + FlagMessage, + LargeCenteredLayout, + PageContentFontWrapper, + SubHeading, + Title, +} from 'design-system'; import * as React from 'react'; import { Helmet } from 'react-helmet-async'; import ResetPasswordForm from '../../components/common/ResetPasswordForm'; @@ -29,29 +36,29 @@ export interface ResetPasswordProps { currentUser: LoggedInUser; } -export function ResetPassword({ currentUser }: ResetPasswordProps) { +export function ResetPassword({ currentUser }: Readonly) { return ( -
- -
-

{translate('my_account.reset_password')}

-

- {translate('my_account.reset_password.explain')} -

- -
-

{translate('my_profile.password.title')}

- - { - // Force a refresh for the backend to handle additional redirects. - window.location.href = `${getBaseUrl()}/`; - }} - /> + + + +
+
+ {translate('my_account.reset_password')} + + {translate('my_account.reset_password.explain')} + + {translate('my_profile.password.title')} + { + // Force a refresh for the backend to handle additional redirects. + window.location.href = `${getBaseUrl()}/`; + }} + /> +
-
-
+ + ); } diff --git a/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx b/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx index b282209f32f..bf14308c9e1 100644 --- a/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx +++ b/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx @@ -91,6 +91,7 @@ export default function ResetPasswordForm({