Skip to content

Commit

Permalink
Turn autocomplete off (#7911)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan authored Nov 3, 2022
1 parent 9410a5c commit f416954
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@
@confirm="$emit('confirm', group)"
>
<template #content>
<oc-text-input
id="create-group-input-display-name"
v-model="group.displayName"
class="oc-mb-s"
:label="$gettext('Group name') + '*'"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
/>
<form autocomplete="off">
<oc-text-input
id="create-group-input-display-name"
v-model="group.displayName"
class="oc-mb-s"
:label="$gettext('Group name') + '*'"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
/>
</form>
</template>
</oc-modal>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
v-model="filterTerm"
class="oc-ml-m oc-my-s"
:label="$gettext('Filter groups')"
autocomplete="off"
/>
<oc-table
ref="table"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<avatar-image class="oc-mb-m" :width="80" :userid="group.id" :user-name="group.displayName" />
<span class="oc-text-muted group-info-display-name" v-text="group.displayName"></span>
</div>
<div id="group-edit-form" class="oc-background-highlight oc-p-m">
<form id="group-edit-form" class="oc-background-highlight oc-p-m" autocomplete="off">
<oc-text-input
v-model="editGroup.displayName"
class="oc-mb-s"
Expand All @@ -21,7 +21,7 @@
@revert="revertChanges"
@confirm="$emit('confirm', editGroup)"
></compare-save-dialog>
</div>
</form>
</div>
</template>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,44 @@
@confirm="$emit('confirm', user)"
>
<template #content>
<oc-text-input
id="create-user-input-display-name"
v-model="user.onPremisesSamAccountName"
class="oc-mb-s"
:label="$gettext('User name') + '*'"
:error-message="formData.userName.errorMessage"
:fix-message-line="true"
@input="validateUserName"
/>
<oc-text-input
v-model="user.displayName"
class="oc-mb-s"
:label="$gettext('First and last name') + '*'"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
/>
<oc-text-input
v-model="user.mail"
class="oc-mb-s"
:label="$gettext('Email') + '*'"
:error-message="formData.email.errorMessage"
type="email"
:fix-message-line="true"
@input="onInputEmail"
@change="validateEmail"
/>
<oc-text-input
v-model="user.passwordProfile.password"
class="oc-mb-s"
:label="$gettext('Password') + '*'"
:error-message="formData.password.errorMessage"
type="password"
:fix-message-line="true"
@input="validatePassword"
/>
<form autocomplete="off">
<oc-text-input
id="create-user-input-display-name"
v-model="user.onPremisesSamAccountName"
class="oc-mb-s"
:label="$gettext('User name') + '*'"
:error-message="formData.userName.errorMessage"
:fix-message-line="true"
@input="validateUserName"
/>
<oc-text-input
v-model="user.displayName"
class="oc-mb-s"
:label="$gettext('First and last name') + '*'"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
/>
<oc-text-input
v-model="user.mail"
class="oc-mb-s"
:label="$gettext('Email') + '*'"
:error-message="formData.email.errorMessage"
type="email"
:fix-message-line="true"
@input="onInputEmail"
@change="validateEmail"
/>
<oc-text-input
v-model="user.passwordProfile.password"
class="oc-mb-s"
:label="$gettext('Password') + '*'"
:error-message="formData.password.errorMessage"
type="password"
:fix-message-line="true"
@input="validatePassword"
/>
</form>
</template>
</oc-modal>
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div id="user-edit-panel" class="oc-mt-xl">
<UserInfoBox :user="user" />
<div id="user-edit-form" class="oc-background-highlight oc-p-m">
<form id="user-edit-form" class="oc-background-highlight oc-p-m" autocomplete="off">
<div>
<oc-text-input
v-model="editUser.displayName"
Expand Down Expand Up @@ -58,7 +58,7 @@
@revert="revertChanges"
@confirm="$emit('confirm', editUser)"
></compare-save-dialog>
</div>
</form>
</div>
</template>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
v-model="filterTerm"
class="oc-ml-m oc-my-s"
:label="$gettext('Filter users')"
autocomplete="off"
/>
<oc-table
ref="table"
Expand Down

0 comments on commit f416954

Please sign in to comment.