diff --git a/app/client/src/ce/pages/UserAuth/Login.tsx b/app/client/src/ce/pages/UserAuth/Login.tsx index 71edb24aa5..4a94e15694 100644 --- a/app/client/src/ce/pages/UserAuth/Login.tsx +++ b/app/client/src/ce/pages/UserAuth/Login.tsx @@ -46,6 +46,8 @@ import { getThirdPartyAuths, getIsFormLoginEnabled, } from "@appsmith/selectors/tenantSelectors"; +import Helmet from "react-helmet"; +import { useHtmlPageTitle } from "@appsmith/utils"; const validate = (values: LoginFormValues, props: ValidateProps) => { const errors: LoginFormValues = {}; @@ -86,6 +88,7 @@ export function Login(props: LoginFormProps) { const isFormLoginEnabled = useSelector(getIsFormLoginEnabled); const socialLoginList = useSelector(getThirdPartyAuths); const queryParams = new URLSearchParams(location.search); + const htmlPageTitle = useHtmlPageTitle(); const invalidCredsForgotPasswordLinkText = createMessage( LOGIN_PAGE_INVALID_CREDS_FORGOT_PASSWORD_LINK, ); @@ -133,6 +136,10 @@ export function Login(props: LoginFormProps) { subtitle={createMessage(LOGIN_PAGE_SUBTITLE)} title={createMessage(LOGIN_PAGE_TITLE)} > + + {htmlPageTitle} + + {showError && ( + + {htmlPageTitle} + + {showError && {errorMessage}} {socialLoginList.length > 0 && ( diff --git a/app/client/src/ce/utils/index.ts b/app/client/src/ce/utils/index.ts index b14ce61b16..5c806445b9 100644 --- a/app/client/src/ce/utils/index.ts +++ b/app/client/src/ce/utils/index.ts @@ -9,3 +9,7 @@ export const addItemsInContextMenu = ( ) => { return moreActionItems; }; + +export const useHtmlPageTitle = () => { + return "Appsmith"; +};