diff --git a/apps/OpenSign/src/layout/HomeLayout.js b/apps/OpenSign/src/layout/HomeLayout.js
index d604fbbac..5427af365 100644
--- a/apps/OpenSign/src/layout/HomeLayout.js
+++ b/apps/OpenSign/src/layout/HomeLayout.js
@@ -253,21 +253,8 @@ const HomeLayout = () => {
{isUserValid ? (
<>
{isLoader ? (
-
-
+
) : (
<>
diff --git a/apps/OpenSign/src/pages/ForgetPassword.js b/apps/OpenSign/src/pages/ForgetPassword.js
index b87ccf90c..cd798464c 100644
--- a/apps/OpenSign/src/pages/ForgetPassword.js
+++ b/apps/OpenSign/src/pages/ForgetPassword.js
@@ -7,6 +7,8 @@ import Alert from "../primitives/Alert";
import { appInfo } from "../constant/appinfo";
import { useDispatch } from "react-redux";
import { fetchAppInfo } from "../redux/reducers/infoReducer";
+import { isEnableSubscription } from "../constant/const";
+import { getAppLogo } from "../constant/Utils";
function ForgotPassword() {
const dispatch = useDispatch();
@@ -17,6 +19,8 @@ function ForgotPassword() {
hideNav: ""
});
const [sentStatus, setSentStatus] = useState("");
+ const [image, setImage] = useState();
+
const handleChange = (event) => {
const { name, value } = event.target;
setState({ ...state, [name]: value });
@@ -52,13 +56,24 @@ function ForgotPassword() {
useEffect(() => {
dispatch(fetchAppInfo());
+ saveLogo();
resize();
window.addEventListener("resize", resize);
return () => window.removeEventListener("resize", resize);
// eslint-disable-next-line
}, []);
-
- let image = appInfo.applogo;
+ const saveLogo = async () => {
+ if (isEnableSubscription) {
+ const logo = await getAppLogo();
+ if (logo) {
+ setImage(logo);
+ } else {
+ setImage(appInfo?.applogo || undefined);
+ }
+ } else {
+ setImage(appInfo?.applogo || undefined);
+ }
+ };
return (
@@ -71,12 +86,14 @@ function ForgotPassword() {
Please setup email adapter
)}
-
-
- {state.hideNav ? (
-

- ) : (
-

+
+
+ {image && (
+

)}
@@ -86,7 +103,7 @@ function ForgotPassword() {
Reset Your Password
-
+
-
@@ -1097,13 +1078,13 @@ function Login() {
role="region"
className="md:p-10 lg:p-16"
>
-
+
{image && (

)}
@@ -1115,7 +1096,7 @@ function Login() {
-
+
@@ -1128,7 +1109,7 @@ function Login() {
onChange={handleChange}
required
/>
-
+
{!isLoginSSO && (
<>
- {appInfo.googleClietId && (
+ {(appInfo.googleClietId || isEnableSubscription) && (
OR
)}
diff --git a/apps/OpenSign/src/pages/SSOVerify.js b/apps/OpenSign/src/pages/SSOVerify.js
index 85dbb70bd..e7afdc9d6 100644
--- a/apps/OpenSign/src/pages/SSOVerify.js
+++ b/apps/OpenSign/src/pages/SSOVerify.js
@@ -3,11 +3,7 @@ import { useLocation, useNavigate } from "react-router-dom";
import Parse from "parse";
import axios from "axios";
import { appInfo } from "../constant/appinfo";
-import {
- isEnableSubscription,
- modalCancelBtnColor,
- modalSubmitBtnColor
-} from "../constant/const";
+import { isEnableSubscription } from "../constant/const";
import { fetchSubscription } from "../constant/Utils";
import { useDispatch } from "react-redux";
import { showTenant } from "../redux/reducers/ShowTenant";
@@ -294,33 +290,26 @@ const SSOVerify = () => {
{message === "Verifying SSO..." && (

)}
-
{message}
+
{message}