piwik_host: Host of your website in Piwik
piwik_site_id: ID of your website in Piwik
piwik_enabled: Enable Piwik
+demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)"
+demo_mode_username: "Demo user"
piwik_host: URL de votre site dans Piwik
piwik_site_id: ID de votre site dans Piwik
piwik_enabled: Activer Piwik
+demo_mode_enabled: "Activer le mode démo ? (utiliser uniquement pour la démo publique de wallabag)"
+demo_mode_username: "Utilisateur de la démo"
fosuser_confirmation: true
from_email: no-reply@wallabag.org
-
- # this parameter is only used for the wallabag public demo, it means user won't be able to change the password of the demo_user account
- demo: false
- demo_username: wallabag
fosuser_confirmation: true
from_email: no-reply@wallabag.org
-
- # this parameter is only used for the wallabag public demo, it means user won't be able to change the password of the demo_user account
- demo: false
- demo_username: wallabag
fosuser_confirmation: true
from_email: no-reply@wallabag.org
-
- # this parameter is only used for the wallabag public demo, it means user won't be able to change the password of the demo_user account
- demo: false
- demo_username: wallabag
fosuser_confirmation: true
from_email: no-reply@wallabag.org
-
- # this parameter is only used for the wallabag public demo, it means user won't be able to change the password of the demo_user account
- demo: false
- demo_username: wallabag
'value' => '1',
'section' => 'analytics',
],
+ [
+ 'name' => 'demo_mode_enabled',
+ 'value' => '0',
+ 'section' => 'misc',
+ ],
+ [
+ 'name' => 'demo_mode_username',
+ 'value' => 'wallabag',
+ 'section' => 'misc',
+ ],
];
foreach ($settings as $setting) {
$pwdForm->handleRequest($request);
if ($pwdForm->isValid()) {
- if ($this->getParameter('demo') === true && $this->getParameter('demo_username') === $user->getUsername()) {
+ if ($this->get('craue_config')->get('demo_mode_enabled') && $this->get('craue_config')->get('demo_mode_username') === $user->getUsername()) {
$this->get('session')->getFlashBag()->add(
'notice',
'In demonstration mode, you can\'t change password for this user.'
'value' => '1',
'section' => 'analytics',
],
+ [
+ 'name' => 'demo_mode_enabled',
+ 'value' => '0',
+ 'section' => 'misc',
+ ],
+ [
+ 'name' => 'demo_mode_username',
+ 'value' => 'wallabag',
+ 'section' => 'misc',
+ ],
];
foreach ($settings as $setting) {