diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/login.js | 1 | ||||
-rw-r--r-- | core/src/views/Login.vue | 15 |
2 files changed, 15 insertions, 1 deletions
diff --git a/core/src/login.js b/core/src/login.js index a7d738ee9ef..b23da4bebd1 100644 --- a/core/src/login.js +++ b/core/src/login.js @@ -67,5 +67,6 @@ new View({ hasPasswordless: fromStateOr('webauthn-available', false), isHttps: window.location.protocol === 'https:', hasPublicKeyCredential: typeof (window.PublicKeyCredential) !== 'undefined', + hideLoginForm: fromStateOr('hideLoginForm', false), }, }).$mount('#login') diff --git a/core/src/views/Login.vue b/core/src/views/Login.vue index 0a5708bb5c3..c75ae98030b 100644 --- a/core/src/views/Login.vue +++ b/core/src/views/Login.vue @@ -20,7 +20,7 @@ --> <template> - <div> + <div v-if="!hideLoginForm || directLogin"> <transition name="fade" mode="out-in"> <div v-if="!passwordlessLogin && !resetPassword && resetPasswordTarget === ''" key="login"> @@ -84,6 +84,15 @@ </div> </transition> </div> + <div v-else> + <transition name="fade" mode="out-in"> + <div class="warning"> + {{ t('core', 'Login form is disabled.') }}<br> + <small>{{ t('core', 'Please contact your administrator.') }} + </small> + </div> + </transition> + </div> </template> <script> @@ -153,6 +162,10 @@ export default { type: Boolean, default: false, }, + hideLoginForm: { + type: Boolean, + default: false + } }, data() { return { |