Skip to content

Commit

Permalink
Merge pull request #616 from Nikemare/issue-585-oidc-button-moves-bef…
Browse files Browse the repository at this point in the history
…ore-click

Changed input validation on login form to passive
  • Loading branch information
nscuro authored Oct 16, 2023
2 parents dc9dec4 + b840950 commit 1c27f37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/forms/BValidatedInputGroupFormInput.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<validation-provider :vid="id" :name="label" :rules="rules" v-slot="{ errors, valid }">
<validation-provider :vid="id" :name="label" :rules="rules" :mode="mode" v-slot="{ errors, valid }">
<b-form-group :id="id" :label="label" :label-for="`${id}-input`">
<b-input-group :class="inputGroupSize">
<b-input-group-prepend v-if="icon"><b-input-group-text><i :class="icon"></i></b-input-group-text></b-input-group-prepend>
Expand Down Expand Up @@ -39,6 +39,7 @@
inputGroupSize: String,
icon: String,
rules: String,
mode: String,
type: String,
autocomplete: String,
autofocus: String,
Expand Down
2 changes: 2 additions & 0 deletions src/views/pages/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
:label="$t('message.username')"
input-group-size="mb-3"
rules="required"
mode="passive"
icon="icon-user"
type="text"
autocomplete="username email"
Expand All @@ -28,6 +29,7 @@
:label="$t('message.password')"
input-group-size="mb-3"
rules="required"
mode="passive"
icon="icon-lock"
type="password"
autcomplete="currentpassword"
Expand Down

0 comments on commit 1c27f37

Please sign in to comment.