1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-17 17:08:37 +00:00

Use internal config instead for demo

This commit is contained in:
Jeremy Benoist 2016-02-22 11:38:25 +01:00
parent d8d56448c9
commit a4f42c59f0
9 changed files with 25 additions and 17 deletions

View file

@ -57,7 +57,7 @@ class ConfigController extends Controller
$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.'