Skip to content

Commit

Permalink
Clean; signin - reduce unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
fs5m8 committed Dec 21, 2022
1 parent 6d6b8f8 commit a2c2e98
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/client/app/common/views/components/signin.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<form class="mk-signin" :class="{ signing, totpLogin }" @submit.prevent="onSubmit">
<div class="normal-signin" v-if="!totpLogin">
<ui-input v-model="username" type="text" pattern="^[a-zA-Z0-9_]+$" spellcheck="false" autofocus required @input="onUsernameChange">
<ui-input v-model="username" type="text" pattern="^[a-zA-Z0-9_]+$" spellcheck="false" autofocus required>
<span>{{ $t('username') }}</span>
<template #prefix>@</template>
<template #suffix>@{{ host }}</template>
Expand Down Expand Up @@ -77,16 +77,6 @@ export default Vue.extend({
},
methods: {
onUsernameChange() {
this.$root.api('users/show', {
username: this.username
}).then(user => {
this.user = user;
}, () => {
this.user = null;
});
},
queryKey() {
this.queryingKey = true;
return navigator.credentials.get({
Expand Down

0 comments on commit a2c2e98

Please sign in to comment.