mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 02:04:52 +01:00
Add (inoperative) Demo option to the Options tab
This commit is contained in:
parent
e6a4e5c69b
commit
a545716798
8
resources/js/langs/locales.js
vendored
8
resources/js/langs/locales.js
vendored
@ -91,6 +91,10 @@ export default {
|
||||
"show_token_as_dot": {
|
||||
"label": "Show generated tokens as dot",
|
||||
"help": "Replace generated token caracters with *** to ensure confidentiality. Do not affect the copy/paste feature."
|
||||
},
|
||||
"is_demo_app": {
|
||||
"label": "Set the app as a demo",
|
||||
"help": "If set to Yes, the app content (including the registered user) will be reset every hours. Use the 'demo' user and 'demo' password to connect to the app in demo mode."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -354,6 +358,10 @@ export default {
|
||||
"show_token_as_dot": {
|
||||
"label": "Masquer les codes générés",
|
||||
"help": "Remplace les caractères des codes générés par des *** pour garantir leur confidentialité. N'affecte pas la fonction copier/coller qui reste utilisable."
|
||||
},
|
||||
"is_demo_app": {
|
||||
"label": "Activer le mode Démo",
|
||||
"help": "Le mode Démo remet à zéro le contenu de l'application (y compris l'utilisateur enregistré) toutes les heures. Utilisez le compte 'demo' et le mot de passe 'demo' pour vous y connecter."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -7,6 +7,7 @@
|
||||
<form @submit.prevent="handleSubmit" @change="handleSubmit" @keydown="form.onKeydown($event)">
|
||||
<form-select :options="options" :form="form" fieldName="lang" :label="$t('settings.forms.language.label')" :help="$t('settings.forms.language.help')" />
|
||||
<form-switch :form="form" fieldName="showTokenAsDot" :label="$t('settings.forms.show_token_as_dot.label')" :help="$t('settings.forms.show_token_as_dot.help')" />
|
||||
<form-switch :form="form" fieldName="isDemoApp" :label="$t('settings.forms.is_demo_app.label')" :help="$t('settings.forms.is_demo_app.help')" />
|
||||
</form>
|
||||
</form-wrapper>
|
||||
</template>
|
||||
@ -23,6 +24,7 @@
|
||||
form: new Form({
|
||||
lang: this.$root.$i18n.locale,
|
||||
showTokenAsDot: Boolean(Number(appSettings.showTokenAsDot)),
|
||||
isDemoApp: Boolean(Number(appSettings.isDemoApp)),
|
||||
}),
|
||||
options: [
|
||||
{ text: this.$t('languages.en'), value: 'en' },
|
||||
|
@ -31,6 +31,10 @@
|
||||
'label' => 'Show generated tokens as dot',
|
||||
'help' => 'Replace generated token caracters with *** to ensure confidentiality. Do not affect the copy/paste feature.'
|
||||
],
|
||||
'is_demo_app' => [
|
||||
'label' => 'Set the app as a demo',
|
||||
'help' => 'If set to Yes, the app content (including the registered user) will be reset every hours. Use the \'demo\' user and \'demo\' password to connect to the app in demo mode.'
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
|
@ -30,7 +30,12 @@
|
||||
'show_token_as_dot' => [
|
||||
'label' => 'Masquer les codes générés',
|
||||
'help' => 'Remplace les caractères des codes générés par des *** pour garantir leur confidentialité. N\'affecte pas la fonction copier/coller qui reste utilisable.'
|
||||
]
|
||||
],
|
||||
'is_demo_app' => [
|
||||
'label' => 'Activer le mode Démo',
|
||||
'help' => 'Le mode Démo remet à zéro le contenu de l\'application (y compris l\'utilisateur enregistré) toutes les heures. Utilisez le compte \'demo\' et le mot de passe \'demo\' pour vous y connecter.'
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user