feat: hide first_install_token if is not required (#3795)

This commit is contained in:
dni ⚡
2026-02-25 07:54:28 +01:00
parent e7c4de6506
commit b25a3c2bb4
4 changed files with 5 additions and 2 deletions
+2
View File
@@ -1220,6 +1220,7 @@ class PublicSettings(BaseModel):
lnbits_user_activation_by_invitation_code: bool = Field(
alias="userActivationByInvitationCode"
)
has_first_install_token: bool = Field(alias="hasFirstInstallToken")
@classmethod
def from_settings(cls, settings: Settings):
@@ -1278,6 +1279,7 @@ class PublicSettings(BaseModel):
userActivationByEmail=settings.lnbits_user_activation_by_email,
userActivationByPayment=settings.lnbits_user_activation_by_payment,
userActivationByInvitationCode=settings.lnbits_user_activation_by_invitation_code,
hasFirstInstallToken=settings.first_install_token is not None,
)
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -529,7 +529,7 @@ window.localisation.en = {
hash: 'Hash: ',
welcome_lnbits: 'Welcome to LNbits',
setup_su_account: 'Set up the Superuser account below.',
first_install_token: 'First Install Token (optional)',
first_install_token: 'First Install Token',
create_ticker_converter: 'Create Currency Ticker Converter',
enable_audit: 'Enable Audit',
recommended: 'Recommended',
+1
View File
@@ -55,6 +55,7 @@
></q-input>
<q-input
filled
v-if="g.settings.hasFirstInstallToken"
v-model.trim="loginData.firstInstallToken"
:type="loginData.isPwd ? 'password' : 'text'"
:label="$t('first_install_token')"