Skip to content

Commit

Permalink
Fixed browser password autocomplete (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
likeaninja5 authored Mar 29, 2024
1 parent 97975f1 commit 7cdd67f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
releases/
secrets/
config/
public/dist/build.js*
public/dist/build.js*
public/dist/
public/node_modules/
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Don't change line endings on .sh files
*.sh -crlf
9 changes: 6 additions & 3 deletions public/src/components/server_config/settings.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<template>
<collapsible :title="$t('title')" with-import="true" import-filename="settings.json" @load="setDataFile">
<div class="pwd">
<field v-if="!passwordIsEmpty" type="password" :label="$t('password_label')" v-model="password" :disabled="passwordIsEmpty"></field>
<label v-if="!passwordIsEmpty"> {{ $t('password_label') }} </label>
<input v-if="!passwordIsEmpty" class="form-input" type="password" v-model="password" v-bind:autocomplete="'new-password'" :disabled="passwordIsEmpty">
<checkbox :label="$t('password_empty_label')" v-model="passwordIsEmpty"></checkbox>
</div>
<div class="pwd">
<field v-if="!adminPasswordIsEmpty" type="password" :label="$t('adminpassword_label')" v-model="adminPassword" :disabled="adminPasswordIsEmpty"></field>
<label v-if="!adminPasswordIsEmpty"> {{ $t('adminpassword_label') }} </label>
<input v-if="!adminPasswordIsEmpty" class="form-input" type="password" v-model="adminPassword" v-bind:autocomplete="'new-password'" :disabled="adminPasswordIsEmpty">
<checkbox :label="$t('adminpassword_empty_label')" v-model="adminPasswordIsEmpty"></checkbox>
</div>
<div class="pwd">
<field v-if="!spectatorPasswordIsEmpty" type="password" :label="$t('spectatorpassword_label')" v-model="spectatorPassword" :disabled="spectatorPasswordIsEmpty"></field>
<label v-if="!spectatorPasswordIsEmpty"> {{ $t('spectatorpassword_empty_label') }} </label>
<input v-if="!spectatorPasswordIsEmpty" class="form-input" type="password" v-model="spectatorPassword" v-bind:autocomplete="'new-password'" :disabled="spectatorPasswordIsEmpty">
<checkbox :label="$t('spectatorpassword_empty_label')" v-model="spectatorPasswordIsEmpty"></checkbox>
</div>
<div class="server-settings-container three-columns" style="margin-top: 1.0rem;">
Expand Down

0 comments on commit 7cdd67f

Please sign in to comment.