Enable signin button on login form change

Enable the signin button on the login page when the username or
password field changes.

This fixes some errors where the password manager inserted
username and password but the "SignIn" button was not activated as a result.

Closes #692
pull/724/head
Henri Cook 2020-07-04 10:42:31 +01:00
parent 781b8db721
commit d7a19ef538
1 changed files with 2 additions and 2 deletions

View File

@ -4,13 +4,13 @@
<div class="form-group row">
<label for="username" class="col-4 col-form-label">{{$t('username')}}</label>
<div class="col-8">
<input @keyup="checkForm" type="text" v-model="username" autocomplete="username" name="username" class="form-control" id="username" placeholder="admin" autocorrect="off" autocapitalize="none">
<input @keyup="checkForm" @change="checkForm" type="text" v-model="username" autocomplete="username" name="username" class="form-control" id="username" placeholder="admin" autocorrect="off" autocapitalize="none">
</div>
</div>
<div class="form-group row">
<label for="password" class="col-4 col-form-label">{{$t('password')}}</label>
<div class="col-8">
<input @keyup="checkForm" type="password" v-model="password" autocomplete="current-password" name="password" class="form-control" id="password" placeholder="************">
<input @keyup="checkForm" @change="checkForm" type="password" v-model="password" autocomplete="current-password" name="password" class="form-control" id="password" placeholder="************">
</div>
</div>
<div class="form-group row">