fix: message spacing
This commit is contained in:
parent
fda0b81d9c
commit
a1814ea29d
4 changed files with 14 additions and 7 deletions
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<message variant="success" class="has-text-centered" v-if="confirmedEmailSuccess">
|
<message variant="success" class="has-text-centered mb-4" v-if="confirmedEmailSuccess">
|
||||||
{{ $t('user.auth.confirmEmailSuccess') }}
|
{{ $t('user.auth.confirmEmailSuccess') }}
|
||||||
</message>
|
</message>
|
||||||
<message variant="danger" v-if="errorMessage">
|
<message variant="danger" v-if="errorMessage" class="mb-4">
|
||||||
{{ errorMessage }}
|
{{ errorMessage }}
|
||||||
</message>
|
</message>
|
||||||
<form @submit.prevent="submit" id="loginform" v-if="localAuthEnabled">
|
<form @submit.prevent="submit" id="loginform" v-if="localAuthEnabled">
|
||||||
|
@ -229,6 +229,13 @@ export default {
|
||||||
password: this.$refs.password.value,
|
password: this.$refs.password.value,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (credentials.username === '' || credentials.password === '') {
|
||||||
|
// Trigger the validation error messages
|
||||||
|
this.validateField('username')
|
||||||
|
this.validateField('password')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (this.needsTotpPasscode) {
|
if (this.needsTotpPasscode) {
|
||||||
credentials.totpPasscode = this.$refs.totpPasscode.value
|
credentials.totpPasscode = this.$refs.totpPasscode.value
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<message v-if="errorMsg">
|
<message v-if="errorMsg" class="mb-4">
|
||||||
{{ errorMsg }}
|
{{ errorMsg }}
|
||||||
</message>
|
</message>
|
||||||
<div class="has-text-centered" v-if="successMessage">
|
<div class="has-text-centered mb-4" v-if="successMessage">
|
||||||
<message variant="success">
|
<message variant="success">
|
||||||
{{ successMessage }}
|
{{ successMessage }}
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<message variant="danger" v-if="errorMessage !== ''">
|
<message variant="danger" v-if="errorMessage !== ''" class="mb-4">
|
||||||
{{ errorMessage }}
|
{{ errorMessage }}
|
||||||
</message>
|
</message>
|
||||||
<form @submit.prevent="submit" id="registerform">
|
<form @submit.prevent="submit" id="registerform">
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<message variant="danger" v-if="errorMsg">
|
<message variant="danger" v-if="errorMsg" class="mb-4">
|
||||||
{{ errorMsg }}
|
{{ errorMsg }}
|
||||||
</message>
|
</message>
|
||||||
<div class="has-text-centered" v-if="isSuccess">
|
<div class="has-text-centered mb-4" v-if="isSuccess">
|
||||||
<message variant="success">
|
<message variant="success">
|
||||||
{{ $t('user.auth.resetPasswordSuccess') }}
|
{{ $t('user.auth.resetPasswordSuccess') }}
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in a new issue