';
// logo
+ const logo_clickable = !!options.window_options?.cover_page;
h += '
';
@@ -377,6 +378,12 @@ async function UIWindowLogin (options) {
},
});
+ if ( logo_clickable ) {
+ $(el_window).find('.auth-logo').on('click', function () {
+ window.location.href = '/';
+ });
+ }
+
$(el_window).find('.forgot-password-link').on('click', function (e) {
UIWindowRecoverPassword({
window_options: {
diff --git a/src/gui/src/UI/UIWindowSignup.js b/src/gui/src/UI/UIWindowSignup.js
index 30d931a4c..61bdb3b87 100644
--- a/src/gui/src/UI/UIWindowSignup.js
+++ b/src/gui/src/UI/UIWindowSignup.js
@@ -32,10 +32,12 @@ function UIWindowSignup (options) {
return new Promise(async (resolve) => {
const internal_id = window.uuidv4();
+ const logo_clickable = !!options.window_options?.cover_page;
+
let h = '';
h += '
';
// logo
- h += `

`;
+ h += `

`;
// close button
if ( !options.has_head && options.show_close_button !== false )
{
@@ -142,6 +144,11 @@ function UIWindowSignup (options) {
{
$(el_window).find('.username').get(0).focus({ preventScroll: true });
}
+ if ( logo_clickable ) {
+ $(el_window).find('.auth-logo').on('click', function () {
+ window.location.href = '/';
+ });
+ }
// Initialize Turnstile widget with callback to capture token
const initTurnstile = () => {