mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix: remove double <form> element from 2FA form (#9851)
This commit is contained in:
parent
8a1da3804c
commit
58138f2da3
@ -17,41 +17,39 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<a-form>
|
<img
|
||||||
<img
|
v-if="$config.banner"
|
||||||
v-if="$config.banner"
|
:src="$config.banner"
|
||||||
:src="$config.banner"
|
class="user-layout-logo"
|
||||||
class="user-layout-logo"
|
alt="logo">
|
||||||
alt="logo">
|
<h1 style="text-align: center; font-size: 24px; color: gray"> {{ $t('label.two.factor.authentication') }} </h1>
|
||||||
<h1 style="text-align: center; font-size: 24px; color: gray"> {{ $t('label.two.factor.authentication') }} </h1>
|
<p v-if="$store.getters.twoFaProvider === 'totp'" style="text-align: center; font-size: 16px;" v-html="$t('message.two.fa.auth.totp')"></p>
|
||||||
<p v-if="$store.getters.twoFaProvider === 'totp'" style="text-align: center; font-size: 16px;" v-html="$t('message.two.fa.auth.totp')"></p>
|
<p v-if="$store.getters.twoFaProvider === 'staticpin'" style="text-align: center; font-size: 16px;" v-html="$t('message.two.fa.auth.staticpin')"></p>
|
||||||
<p v-if="$store.getters.twoFaProvider === 'staticpin'" style="text-align: center; font-size: 16px;" v-html="$t('message.two.fa.auth.staticpin')"></p>
|
<br />
|
||||||
<br />
|
<a-form
|
||||||
<a-form
|
:ref="formRef"
|
||||||
:ref="formRef"
|
:model="form"
|
||||||
:model="form"
|
:rules="rules"
|
||||||
:rules="rules"
|
@finish="handleSubmit"
|
||||||
@finish="handleSubmit"
|
layout="vertical">
|
||||||
layout="vertical">
|
<a-form-item name="code" ref="code" style="text-align: center;">
|
||||||
<a-form-item name="code" ref="code" style="text-align: center;">
|
<a-input-password
|
||||||
<a-input-password
|
style="width: 500px"
|
||||||
style="width: 500px"
|
v-model:value="form.code"
|
||||||
v-model:value="form.code"
|
placeholder="xxxxxx" />
|
||||||
placeholder="xxxxxx" />
|
</a-form-item>
|
||||||
</a-form-item>
|
<br/>
|
||||||
<br/>
|
<div :span="24" class="center-align top-padding">
|
||||||
<div :span="24" class="center-align top-padding">
|
<a-button
|
||||||
<a-button
|
:loading="loading"
|
||||||
:loading="loading"
|
ref="submit"
|
||||||
ref="submit"
|
type="primary"
|
||||||
type="primary"
|
:disabled="buttonstate"
|
||||||
:disabled="buttonstate"
|
class="center-align"
|
||||||
class="center-align"
|
@click="handleSubmit">{{ $t('label.verify') }}
|
||||||
@click="handleSubmit">{{ $t('label.verify') }}
|
</a-button>
|
||||||
</a-button>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</a-form>
|
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user