Skip to content

Commit

Permalink
Fix #1456: Prevent white spaces in username field
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Oct 30, 2023
1 parent 7e7d372 commit 6a64fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/views/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="form-group">
<label for="username">{{ $t('login.Username') }}</label>
<input type="text" v-model="username" name="username" class="form-control"
:class="{ 'is-invalid': submitted && !username }" />
:class="{ 'is-invalid': submitted && !username }" @keydown.space.prevent />
<div v-show="submitted && !username" class="invalid-feedback">{{ $t('login.UsernameRequired') }}
</div>
</div>
Expand Down

0 comments on commit 6a64fe6

Please sign in to comment.