fix layout in login page and password reset
This commit is contained in:
@@ -93,7 +93,6 @@ onMounted(async () => {
|
||||
<div>
|
||||
<small>{{ $t('login.loginTo') }}</small>
|
||||
<h1>{{ name }}</h1>
|
||||
<br/>
|
||||
<div v-html="note"></div>
|
||||
|
||||
<form @submit.prevent="onSubmit" v-if="!totpTokenRequired">
|
||||
@@ -113,12 +112,12 @@ onMounted(async () => {
|
||||
<div class="error-label" v-if="passwordError">{{ $t('login.errorIncorrectCredentials') }}</div>
|
||||
<div class="error-label" v-if="internalError">{{ $t('login.errorInternal') }}</div>
|
||||
<div class="error-label" v-if="oidcError">{{ oidcError }}</div>
|
||||
|
||||
<div style="margin-top: 20px">
|
||||
<Button style="margin-right: 6px" id="loginSubmitButton" @click.prevent="onSubmit" :loading="busy">{{ $t('login.signInAction') }}</Button>
|
||||
<a href="/passwordreset.html">{{ $t('login.resetPasswordAction') }}</a>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="actions">
|
||||
<Button id="loginSubmitButton" @click.prevent="onSubmit" :loading="busy">{{ $t('login.signInAction') }}</Button>
|
||||
<a class="forgot" href="/passwordreset.html">{{ $t('login.resetPasswordAction') }}</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form @submit.prevent="onSubmit" v-if="totpTokenRequired" autocomplete="off">
|
||||
@@ -131,10 +130,28 @@ onMounted(async () => {
|
||||
</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>
|
||||
|
||||
<div class="actions">
|
||||
<Button id="totpTokenSubmitButton" @click.prevent="onSubmit" :loading="busy">{{ $t('login.signInAction') }}</Button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</PublicPageLayout>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.actions {
|
||||
margin-top: 1.5em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.actions .forgot {
|
||||
margin-top: 1em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user