@@ -103,6 +115,7 @@ export default {
return {
enableLocalAuth: false,
enableOpenIDAuth: false,
+ showCustomLoginMessage: false,
savingSettings: false,
newAuthSettings: {}
}
@@ -221,6 +234,10 @@ export default {
return
}
+ if (!this.showCustomLoginMessage || !this.newAuthSettings.authLoginCustomMessage?.trim()) {
+ this.newAuthSettings.authLoginCustomMessage = null
+ }
+
this.newAuthSettings.authActiveAuthMethods = []
if (this.enableLocalAuth) this.newAuthSettings.authActiveAuthMethods.push('local')
if (this.enableOpenIDAuth) this.newAuthSettings.authActiveAuthMethods.push('openid')
@@ -250,6 +267,7 @@ export default {
}
this.enableLocalAuth = this.authMethods.includes('local')
this.enableOpenIDAuth = this.authMethods.includes('openid')
+ this.showCustomLoginMessage = !!this.authSettings.authLoginCustomMessage
}
},
mounted() {
diff --git a/client/pages/login.vue b/client/pages/login.vue
index f7579dd6..c7efa0d0 100644
--- a/client/pages/login.vue
+++ b/client/pages/login.vue
@@ -28,6 +28,8 @@
+
+
{{ error }}