diff options
Diffstat (limited to 'core/src/views/Login.vue')
-rw-r--r-- | core/src/views/Login.vue | 15 |
1 files changed, 14 insertions, 1 deletions
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 { |