Fixed websockets in navigation
This commit is contained in:
@@ -13,12 +13,16 @@
|
||||
<div>
|
||||
<input v-model="username" size="20" type="text"
|
||||
:placeholder="$t('home.nologin.login.name')"
|
||||
:title="$t('home.nologin.login.namedescription')">
|
||||
:title="$t('home.nologin.login.namedescription')"
|
||||
@keydown.enter="focusPassword">
|
||||
</div>
|
||||
<div>
|
||||
<input v-model="password" size="20" type="password"
|
||||
:placeholder="$t('home.nologin.login.password')"
|
||||
:title="$t('home.nologin.login.passworddescription')">
|
||||
:title="$t('home.nologin.login.passworddescription')"
|
||||
@keydown.enter="doLogin"
|
||||
ref="passwordInput"
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<label><input type="checkbox"><span>Eingeloggt bleiben</span></label>
|
||||
@@ -72,6 +76,9 @@ export default {
|
||||
openPasswordResetDialog() {
|
||||
this.$refs.passwordResetDialog.open();
|
||||
},
|
||||
focusPassword() {
|
||||
this.$refs.passwordInput.focus();
|
||||
},
|
||||
async doLogin() {
|
||||
try {
|
||||
const response = await apiClient.post('/api/auth/login', { username: this.username, password: this.password });
|
||||
|
||||
Reference in New Issue
Block a user