Show 2fa error in login view
This commit is contained in:
@@ -105,8 +105,8 @@ onMounted(async () => {
|
||||
<PasswordInput id="inputPassword" v-model="password" required/>
|
||||
</FormGroup>
|
||||
|
||||
<div class="has-error" v-if="passwordError">{{ $t('login.errorIncorrectCredentials') }}</div>
|
||||
<div class="has-error" v-if="internalError">{{ $t('login.errorInternal') }}</div>
|
||||
<div class="error-label" v-if="passwordError">{{ $t('login.errorIncorrectCredentials') }}</div>
|
||||
<div class="error-label" v-if="internalError">{{ $t('login.errorInternal') }}</div>
|
||||
|
||||
<div style="margin-top: 20px">
|
||||
<Button style="margin-right: 6px" id="loginSubmitButton" @click.prevent="onSubmit" :loading="busy">{{ $t('login.signInAction') }}</Button>
|
||||
@@ -124,6 +124,8 @@ onMounted(async () => {
|
||||
<TextInput id="inputTotpToken" v-model="totpToken" required/>
|
||||
</FormGroup>
|
||||
|
||||
<div class="error-label" v-if="totpError">{{ $t('login.errorIncorrect2FAToken') }}</div>
|
||||
|
||||
<Button id="totpTokenSubmitButton" style="margin-top: 12px" @click.prevent="onSubmit" :loading="busy">{{ $t('login.signInAction') }}</Button>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user