fix: default hide funding inputs (#2987)

* fix: default hide funding inputs

To protect admins from over the shoulder attackers, and the attackers from chipping away at their own morality.

* Remove need for function
This commit is contained in:
Arc 2025-02-23 19:28:23 +00:00 committed by GitHub
parent 2af5ac9678
commit 1bfb09ddab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -30,6 +30,7 @@ window.app.component('lnbits-funding-sources', {
}, },
data() { data() {
return { return {
hideInput: true,
rawFundingSources: [ rawFundingSources: [
['VoidWallet', 'Void Wallet', null], ['VoidWallet', 'Void Wallet', null],
[ [

View file

@ -1052,13 +1052,21 @@
> >
<div class="col-12"> <div class="col-12">
<q-input <q-input
filled
type="text"
class="q-mt-sm"
v-model="formData[key]" v-model="formData[key]"
filled
class="q-mt-sm"
:type="hideInput ? 'password' : 'text'"
:label="prop.label" :label="prop.label"
:hint="prop.hint" :hint="prop.hint"
></q-input> >
<template v-slot:append>
<q-icon
:name="hideInput ? 'visibility_off' : 'visibility'"
class="cursor-pointer"
@click="this.hideInput = !this.hideInput"
></q-icon>
</template>
</q-input>
</div> </div>
</div> </div>
</div> </div>