Merge pull request #21829 from nextcloud/bugfix/noid/fix-login-form-erors
Fix login form erors
This commit is contained in:
commit
b327b4fbe6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -23,7 +23,7 @@
|
||||||
<form ref="loginForm"
|
<form ref="loginForm"
|
||||||
method="post"
|
method="post"
|
||||||
name="login"
|
name="login"
|
||||||
:action="OC.generateUrl('login')"
|
:action="loginActionUrl"
|
||||||
@submit="submit">
|
@submit="submit">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div v-if="apacheAuthFailed"
|
<div v-if="apacheAuthFailed"
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
class="hidden">
|
class="hidden">
|
||||||
<img class="float-spinner"
|
<img class="float-spinner"
|
||||||
alt=""
|
alt=""
|
||||||
:src="OC.imagePath('core', 'loading-dark.gif')">
|
:src="loadingIcon">
|
||||||
<span id="messageText" />
|
<span id="messageText" />
|
||||||
<!-- the following div ensures that the spinner is always inside the #message div -->
|
<!-- the following div ensures that the spinner is always inside the #message div -->
|
||||||
<div style="clear: both;" />
|
<div style="clear: both;" />
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
:aria-label="t('core', 'Username or email')"
|
:aria-label="t('core', 'Username or email')"
|
||||||
required
|
required
|
||||||
@change="updateUsername">
|
@change="updateUsername">
|
||||||
<label for="user" class="infield">{{ t('core', 'Username or email') }}</label>
|
<label for="user" class="infield">{{ t('core', 'Username or email') }}</label>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="groupbottom"
|
<p class="groupbottom"
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
<label for="password"
|
<label for="password"
|
||||||
class="infield">{{ t('Password') }}</label>
|
class="infield">{{ t('Password') }}</label>
|
||||||
<a href="#" class="toggle-password" @click.stop.prevent="togglePassword">
|
<a href="#" class="toggle-password" @click.stop.prevent="togglePassword">
|
||||||
<img :src="OC.imagePath('core', 'actions/toggle.svg')">
|
<img :src="toggleIcon">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -126,6 +126,10 @@
|
||||||
<script>
|
<script>
|
||||||
import jstz from 'jstimezonedetect'
|
import jstz from 'jstimezonedetect'
|
||||||
import LoginButton from './LoginButton'
|
import LoginButton from './LoginButton'
|
||||||
|
import {
|
||||||
|
generateUrl,
|
||||||
|
imagePath,
|
||||||
|
} from '@nextcloud/router'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'LoginForm',
|
name: 'LoginForm',
|
||||||
|
@ -185,6 +189,15 @@ export default {
|
||||||
userDisabled() {
|
userDisabled() {
|
||||||
return this.errors.indexOf('userdisabled') !== -1
|
return this.errors.indexOf('userdisabled') !== -1
|
||||||
},
|
},
|
||||||
|
toggleIcon() {
|
||||||
|
return imagePath('core', 'actions/toggle.svg')
|
||||||
|
},
|
||||||
|
loadingIcon() {
|
||||||
|
return imagePath('core', 'loading-dark.gif')
|
||||||
|
},
|
||||||
|
loginActionUrl() {
|
||||||
|
return generateUrl('login')
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.username === '') {
|
if (this.username === '') {
|
||||||
|
|
Loading…
Reference in New Issue