This is an automated email from the ASF dual-hosted git repository.

vishesh pushed a commit to branch password-reset-allow-custom-footer
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 5c9b0acd4ce1a2ae84f6e45aef130d176ba92516
Author: Vishesh <[email protected]>
AuthorDate: Tue Feb 25 15:38:16 2025 +0530

    Allow custom footer in password reset page
---
 ui/public/config.json         | 1 +
 ui/src/layouts/UserLayout.vue | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ui/public/config.json b/ui/public/config.json
index 774e414af0a..38d1fd9bbe7 100644
--- a/ui/public/config.json
+++ b/ui/public/config.json
@@ -13,6 +13,7 @@
   "loginTitle": "CloudStack",
   "loginFavicon": "assets/logo.svg",
   "loginFooter": "",
+  "resetPasswordFooter": "",
   "logo": "assets/logo.svg",
   "minilogo": "assets/mini-logo.svg",
   "banner": "assets/banner.svg",
diff --git a/ui/src/layouts/UserLayout.vue b/ui/src/layouts/UserLayout.vue
index 6c81c858bd2..74a0f596c22 100644
--- a/ui/src/layouts/UserLayout.vue
+++ b/ui/src/layouts/UserLayout.vue
@@ -37,8 +37,9 @@
       </div>
       <route-view></route-view>
     </div>
-    <div class="user-layout-footer" v-if="$config.loginFooter">
-      <label v-html="$config.loginFooter"></label>
+    <div class="user-layout-footer" v-if="$config.loginFooter || 
$config.resetPasswordFooter">
+      <label v-if="$route.name === 'resetPassword' && 
$config.resetPasswordFooter" 
v-html="$config.$config.resetPasswordFooter"></label>
+      <label v-else v-html="$config.$config.resetPasswordFooter"></label>
     </div>
   </div>
 </template>

Reply via email to